How to convert between dialog units to pixels and vice versa?
A. DavidCrow quoted :- This is a very bad idea. Dialog units are used for a reason, namely so that a program does not have to be concerned with what resolution and font are currently in use. By hard-coding controls based on pixel size, you have limited the portability of your program to only one computer. See this comment for more. Michael Dunn quoted :- Use MapDialogRect() to do that conversion.