perhaps are you more easy with the count of numbers from 1 to 100 than with the RECT structure,the *,the + - / etc.
This sample allow you to use only numbers in range 0 to 100 to position any controls you want,like this
Quote
;create edit for path
invoke PosIt,addr rect,0,17,80,17,addr pos
invoke CreateWindowEx,WS_EX_CLIENTEDGE,ADDR edit,NULL,\
WS_VISIBLE or WS_CHILDWINDOW or ES_AUTOHSCROLL or ES_NOHIDESEL,\
pos.X,pos.Y,pos.larg,pos.haut,hwnd,NULL,hInstance,NULL
mov Hedit,eax
There is no need to use the math instructions (see fenetre.inc).
The prog itself do the same thing as the masm fda (source code of it had been of good use) except that he put all the files in the same directory as the data file