|
-
Jun 3rd, 2009, 10:02 AM
#1
Convert pixels to dialog units
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.
Last edited by Ellis Dee; Jun 3rd, 2009 at 10:07 AM.
-
Jun 3rd, 2009, 10:41 AM
#2
Re: Convert pixels to dialog units
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?
-
Jun 3rd, 2009, 11:36 AM
#3
Re: Convert pixels to dialog units
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|