Hi. I'm new here.

Why Resource Editor shows for example Width=260 Height=134 of dialog, when true size is about 390x240 (in pixels) ?

IDD_MAIN DIALOGEX 0,0,260,134
CAPTION ""
FONT 8,"MS Sans Serif"
STYLE 0x14c80000
EXSTYLE 0x00000080
BEGIN
...
END

I don't understand this. I'm using 3.0.0.5 ver. of WinAsm.
Posted on 2004-03-12 19:37:08 by Tomasz
Hi Tomasz and welcome,

This is absolutely normal:

Each dialog box template contains measurements that specify the position, width, and height of the dialog box and the controls it contains. These measurements are device independent, so an application can use a single template to create the same dialog box for all types of display devices. This ensures that a dialog box will have the same proportions and appearance on all screens despite differing resolutions and aspect ratios between screens.

To see how to convert from dialog units to pixels (and vice versa) go here:

http://www.asmcommunity.net/board/index.php?topic=16660

I hope this helps.

Regards,

akyprian
Posted on 2004-03-13 05:11:07 by akyprian
thank you very much!
Posted on 2004-03-13 08:15:01 by Tomasz