🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetTextExtentPoint32

#9737
From: JD
Date: Sat, 12 Jun 2004 12:59
15 lines
1399 bytes
"JD" <nospam@nospam.com> wrote:
>
>Alan Bellingham <alanb@episys.com> wrote:
>> GetTextExtentPoint32() will give you the width that it would
>> take up if you were to print it immediately afterwards. In
>> other words, as per the font currently in effect.

What I have found out is that GetDC *always* initializes the
font to 'System' so to use GetTextExtentPoint32 I need to first
use SelectObject to select the correct font. The problem is
that I have absolutely no clue how to get the font from the
control.

~ JD
Technical Details
Message-ID: <40cafe17$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.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>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e169022c7b789c9d
X-Google-Attributes: gid10cc67,public
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: GetTextExtentPoint32
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.170.181.185     
References: <40ca2cbe$1@newsgroups.borland.com> <n3dkc0d02r2u4da7ogbiilasdi4t43tbno@4ax.com> <40ca656d$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40cafe17$1@newsgroups.borland.com>
Date: 12 Jun 2004 05:59:03 -0700
X-Trace: newsgroups.borland.com 1087045143 207.105.83.66 (12 Jun 2004 05:59:03 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail