08-09-2008, 08:39 AM
CreateControl uses pixels.
Dialog editor uses dialog box units. They depend on dialog font. They are about 2 or 4 pixels, and different horizontally and vertically.
Using pixels is simpler.
What happens if you change dialog font, for example in control panel -> display:
If using pixels, position and size of controls will be the same. But text in controls may be too big or small.
If using dialog box units, position and size of controls will be automatically changed to match the new font.
Dialog editor uses dialog box units. They depend on dialog font. They are about 2 or 4 pixels, and different horizontally and vertically.
Using pixels is simpler.
What happens if you change dialog font, for example in control panel -> display:
If using pixels, position and size of controls will be the same. But text in controls may be too big or small.
If using dialog box units, position and size of controls will be automatically changed to match the new font.