Re: GetTextExtentPoint32 problem
- From: "James Brown [MVP]" <not@home>
- Date: Mon, 13 Mar 2006 16:27:38 -0000
Are you using the same font in the HDC as used by the dialog?
James
--
Microsoft MVP - Windows SDK
www.catch22.net
Free Win32 Source and Tutorials
"DR" <dr1234@xxxxxxxxx> wrote in message
news:%23xGe4prRGHA.2156@xxxxxxxxxxxxxxxxxxxxxxx
I use GetTextExtentPoint32 to get the width of a text on a dialog. First I
call GetDC(hDlg) and then GetTextExtentPoint32 with the dialog DC. But the
returned value is incorrect. It is larger than the actual width of the text
on the dialog.
thanks
.
- Follow-Ups:
- Re: GetTextExtentPoint32 problem
- From: DR
- Re: GetTextExtentPoint32 problem
- References:
- GetTextExtentPoint32 problem
- From: DR
- GetTextExtentPoint32 problem
- Prev by Date: GetTextExtentPoint32 problem
- Next by Date: Re: error LNK2019: unresolved external symbol....?
- Previous by thread: GetTextExtentPoint32 problem
- Next by thread: Re: GetTextExtentPoint32 problem
- Index(es):
Relevant Pages
|