Link to home
Start Free TrialLog in
Avatar of Bruce Peaslee
Bruce Peaslee

asked on

Convert dialog units to pixels

I am using MASM32 and to not want to code dialogs in dialog units. I would like to be able to define the dialog in a resource file.
Avatar of Davis McCarn
Davis McCarn
Flag of United States of America image

MASM32? What heroic tasks do you have to solve? :)
Avatar of Bruce Peaslee
Bruce Peaslee

ASKER

Using a resource editor to create a dialog and its controls is the easiest and fastest way. The problem is that the dimensions of the these pieces are in dialog units, not pixels; so when you run the program, the dialog and its controls are not the same size as expressed in the dialog editor. Ideally, I would like to be able to use pixels from the start, but at least be able to convert to pixels. The web is full of ways to correct this, but I have been unable to find a coding example in MASM32 (or any other version of assembly).
ASKER CERTIFIED SOLUTION
Avatar of Bruce Peaslee
Bruce Peaslee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It works.