kkez
October 28th, 2005, 08:20 AM
I tried:
1) GetDialogBaseUnits (font vary, so there's no way i can use this )
2) GetTextExtent or GetTextExtentPoint32 with getDC
3) WM_GETFONT or GetCurrentObject with LOGFONT
(of course all with MulDiv)
but no one of these methods give me the right dimensions of a dialog control in dialog units. :(
1) GetDialogBaseUnits (font vary, so there's no way i can use this )
2) GetTextExtent or GetTextExtentPoint32 with getDC
3) WM_GETFONT or GetCurrentObject with LOGFONT
(of course all with MulDiv)
but no one of these methods give me the right dimensions of a dialog control in dialog units. :(