How do you convert dialog units to pixels?
Here is a starting point. Any help is appreciated.
EDIT: This article may contain the solution I need. If so, I'll mark this thread resolved.
Printable View
How do you convert dialog units to pixels?
Here is a starting point. Any help is appreciated.
EDIT: This article may contain the solution I need. If so, I'll mark this thread resolved.
The problem seems to be that dialog units are defined in the system font. So all I really need is to find out what the system font is. Anyone know how to do that?
See if these links help
1. Converting dialog units to pixels (reverse of what you asked)
2. SystemParametersInfo API to retreive system font. Search page for SPI_SETNONCLIENTMETRICS. Note there are several system fonts, depending on what part of a window one is talking about.