Article View: borland.public.cppbuilder.nativeapi
Article #9855hWnd to hDC
From: JD
Date: Fri, 11 Jun 2004 15:16
Date: Fri, 11 Jun 2004 15:16
5 lines
893 bytes
893 bytes
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? ~ JD
Technical Details
Message-ID:
<40c9ccbd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,819ce6f771e7e634,start X-Google-Attributes: gid10cc67,public From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: hWnd to hDC Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 172.172.104.27 NNTP-Posting-Host: 207.105.83.66 Message-ID: <40c9ccbd$1@newsgroups.borland.com> Date: 11 Jun 2004 08:16:13 -0700 X-Trace: newsgroups.borland.com 1086966973 207.105.83.66 (11 Jun 2004 08:16:13 -0700) Lines: 6 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail