Re: GetTextExtentPoint32 problem



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



.



Relevant Pages