Create a dialog box with resed,only one by rc file.
Open the rc file with dialog_sdi,give it a short friendly name.
Choose if you want it in pixel or in percentage of the screen and in % of the mother window.
In percentage units, the screen is 100*100 and a mother window is 100*100.
The code pcCreateWindowEx can be get in the help menu.
Only CONTROL (resed use only those ones) are read.
The resource is compiled and used to made an exe.This one do only one thing,read the sizes of the windows and write them in rapport.txt.
This grant a perfect result in any cases.Just run readsize_dialogex.exe when you see it in the shell window.closed the shell window,you have the code in the editor.
Take care not to modify the ID (1000 to x) given by resed.
The readsize_dialogex.exe made just a loop threw this number to find the windows handles.
REad the comment in the created code,he will give you the one line you need to use it.
********* With screen in % ,the size of the windows don't change with the resolution of the screen, 800*600 same look as in 1280*1024*********
HIWORD MACRO ParamFen,register:REQ
mov register,ParamFen
shr register,16
ENDM
LOWORD MACRO ParamFen,register:REQ
mov register,ParamFen
and register,0FFFFh
ENDM
PuPo MACRO M1, M2
push M2
pop M1
ENDM