Re: GetTextExtentPoint32 problem
- From: "DR" <dr1234@xxxxxxxxx>
- Date: Mon, 13 Mar 2006 18:25:02 +0100
I don't use the dialog DC for anything else than calling
GetTextExtentPoint32.
So I don't know which font is has selected.
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: James Brown [MVP]
- Re: GetTextExtentPoint32 problem
- References:
- GetTextExtentPoint32 problem
- From: DR
- Re: GetTextExtentPoint32 problem
- From: James Brown [MVP]
- GetTextExtentPoint32 problem
- Prev by Date: Re: error LNK2019: unresolved external symbol....?
- Next by Date: Re: /LTCG and /ORDER
- Previous by thread: Re: GetTextExtentPoint32 problem
- Next by thread: Re: GetTextExtentPoint32 problem
- Index(es):
Relevant Pages
|