🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9744

Re: GetTextExtentPoint32

#9744
From: Fishface
Date: Sun, 13 Jun 2004 03:38
12 lines
1503 bytes
JD wrote:

> I can't recall the exact wording from MS but the problem with
> that is that Static Text Controls don't process messages.
> However, I just got it working !!
>
> I had to EnumChildWindows looking for a class name of "Static",
> convert it's HWND to a HDC and then use:
>
>    HFONT hfOld = SelectObject( hDC, GetStockObject(DEFAULT_GUI_FONT) );

Great idea!  There seems to be a GetCurrentObject(), too.
Technical Details
Message-ID: <40cbcbd7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40ca2cbe$1@newsgroups.borland.com> <n3dkc0d02r2u4da7ogbiilasdi4t43tbno@4ax.com> <40ca656d$1@newsgroups.borland.com> <40cafe17$1@newsgroups.borland.com> <40cb05a0@newsgroups.borland.com> <40cb0dac$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e169022c7b789c9d
X-Google-Attributes: gid10cc67,public
From: "Fishface" <invalid@ddress.ok?>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40ca2cbe$1@newsgroups.borland.com> <n3dkc0d02r2u4da7ogbiilasdi4t43tbno@4ax.com> <40ca656d$1@newsgroups.borland.com> <40cafe17$1@newsgroups.borland.com> <40cb05a0@newsgroups.borland.com> <40cb0dac$1@newsgroups.borland.com>
Subject: Re: GetTextExtentPoint32
Date: Sat, 12 Jun 2004 20:38:45 -0700
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 209.102.125.181
Message-ID: <40cbcbd7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087097815 209.102.125.181 (12 Jun 2004 20:36:55 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail