Article View: borland.public.cppbuilder.nativeapi
Article #9858Re: hWnd to hDC
From: Alan Bellingham
Date: Fri, 11 Jun 2004 15:37
Date: Fri, 11 Jun 2004 15:37
12 lines
1170 bytes
1170 bytes
"JD" <nospam@nospam.com> wrote: >Given the hWnd of a window, how can I get an hDC to it so that >I can measure the width of a string using GetTextExtentPoint32? Get a DC? GetDC(). Don't forget ReleaseDC() when you've finished. Alan Bellingham -- ACCU Conference 2005 - 20-23 April, Randolph Hotel, Oxford, UK
Technical Details
Message-ID:
<kckjc0lbgm8oneq53a92i6k472knor9qjr@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40c9ccbd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,819ce6f771e7e634 X-Google-Attributes: gid10cc67,public From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: hWnd to hDC Date: Fri, 11 Jun 2004 16:37:43 +0100 Reply-To: alanb@episys.com Message-ID: <kckjc0lbgm8oneq53a92i6k472knor9qjr@4ax.com> References: <40c9ccbd$1@newsgroups.borland.com> X-Newsreader: Forte Agent 2.0/32.646 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.129.251.130 X-Trace: newsgroups.borland.com 1086968262 193.129.251.130 (11 Jun 2004 08:37:42 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail