Resource File Control Sizes
| jrohde (17) | |||
| Hello - When creating a modeless dialog box resource, I noticed that every coordinate and size for the controls is larger than it would be, had I created the same types of controls dynamically in a window procedure. When compared to a test image of known length in pixels, the normal CreateWindow() dimensions are the correct ones, whereas the dialog resource control dimensions are about 1 1/2 to 2 times as large as they ought to be. This is not a problem, programming-wise, because the program is 100% functional as I expect, but I was just really surprised when the first time I compiled and ran this, everything was huge. Has anyone else had this issue? Essentially, the dialog box from the code below of width 200 shows up about twice that width. The push buttons of height 10 show up as if they're about 17 pixels high. Thank you in advance to anyone with an answer!
| |||
| Greenhorn (3) | |||
| Maybe the values you've set were overridden, because the caption is longer than 100 pixels and the the fontsize + padding is at min. 17 ??? Try it without text and look what happens ... Greetz | |||
This topic is archived - New replies not allowed.
