Hello! I just found out that unit of the size of an dialog which is set in the resource-section are not pixel. But when you create a window by invoking CreateWindowEx, the unit of the width and height ARE pixel.
In the Win32API-Reference i found something about so-called Device-Units and before i've read that Macintosh-computers run a resolution of 72dpi, while PC's run at 96dpi. I find it somehow strange that the width and height parameters of the resource-files are not in pixel.
I have "solved" it for now by resizing the Window (SetWindowPos) after creating it out of a resource (DialogBoxParam), but i wonder if there is a smoother way...?
|