Sorry for complaining again, but I am having trouble with setting sizes for resouces. I define a dialog of x width, and make a control with same x width (0 for left), and control is much larger than the dialog. Same goes for height. What is wrong? Also, is there anyway to define exstyle (extended style) for controls in dialogs?
Posted on 2003-04-19 21:39:56 by comrade
I investigated (thanks to Resource Hacker) and found out that positioning glitch I wrote in previous post is due to absense of WS_CAPTION flag. Now all is okay. :)
Now, how to specify extended styles?
Posted on 2003-04-19 23:14:06 by comrade
Yeah....How to specify extended style? I would really like FASM's macros to support extended style too... Anyone who can help "us" (isn't it another structure of the resource-section when there are included exstyle)?
Posted on 2003-04-21 11:24:31 by Tommy
Here, I modified dialogitem macro (found in include/macro/ to handle extended styles for dialog items (optionally, so old lines with no exstyle specified shall still work):
macro dialogitem class,title,id,x,y,cx,cy,style,[exstyle]

{ dd style or WS_CHILD
if ~ exstyle eq
dd exstyle
dd 0
end if
dw x,y,cx,cy,id
if class eq 'BUTTON'
dw 0FFFFh,80h
else if class eq 'EDIT'
dw 0FFFFh,81h
else if class eq 'STATIC'
dw 0FFFFh,82h
else if class eq 'LISTBOX'
dw 0FFFFh,83h
else if class eq 'SCROLLBAR'
dw 0FFFFh,84h
else if class eq 'COMBOBOX'
dw 0FFFFh,85h
du class,0
end if
if title eqtype 0
dw 0FFFFh,title
du title,0
end if
dw 0
align 4
dialog_items = dialog_items - 1
if dialog_items = 0
end if }
Posted on 2003-04-21 23:24:18 by comrade
What about extended style on dialogs? Thanks for the two other modifications of the resource macros! :alright: Maybe Privalov will support those as a standard in the next release of FASM??
Posted on 2003-04-22 01:02:44 by Tommy