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.
MASM32? What heroic tasks do you have to solve? :)
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It works.
http://showmedo.com/videotutorials/video?name=3200020&fromSeriesID=320