flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Redragon
This may sound really stupid, but how do you create a button? in all of the examples i have seen, it creates the buttons as if it was for a dialog box.. thanks!
|
|||
![]() |
|
bazik
Redragon wrote: This may sound really stupid, but how do you create a button? in all of the examples i have seen, it creates the buttons as if it was for a dialog box.. thanks! Code: _button db 'button', 0 invoke CreateWindowEx, 0, _button, _text, WS_VISIBLE + WS_CHILD, WND_W-15, 0, 15, 15, [hwnd], BTN_EXT, 0, 0 For an explanation of the parameters look here: http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/createwindowex.asp |
|||
![]() |
|
bazik
Redragon wrote: what is "BTN_EXT" caus i get an error that it isnt defined.. so im not sure what i should include for it You forgot to set [hwnd] which is the handle of the parent window. BTN_EXT was a constant for the button ID which you can process in WM_COMMAND when a button is clicked. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.