GetTextExtentPoint32 problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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


.