Hi all!
New to asm and which to use it with both win an Linux, FASM looks nice
and this is where I'm starting.
Struggeling with a dialogbox with a menu, like the one in the asmedit example.
I cannot get the grip on how the menu must be created, saw that it is using some macros and the resourcefile but still no luck.
Basicly what I'm trying to do is to in the first step, add a "Save and Save As" to the example with CreateFile etc..
Any help would be appreciated
New to asm and which to use it with both win an Linux, FASM looks nice
and this is where I'm starting.
Struggeling with a dialogbox with a menu, like the one in the asmedit example.
I cannot get the grip on how the menu must be created, saw that it is using some macros and the resourcefile but still no luck.
Basicly what I'm trying to do is to in the first step, add a "Save and Save As" to the example with CreateFile etc..
Any help would be appreciated
Welcome to our board!
Something like this should work:
P.S.: There is a example in the "minipad.asm" in the FASM example source directory:
Something like this should work:
600 MENUEX MOVEABLE IMPURE LOADONCALL DISCARDABLE
BEGIN
POPUP "&File", , , 0
BEGIN
MENUITEM "&Save", 1010
MENUTIME "&Close", 1020
END
END
P.S.: There is a example in the "minipad.asm" in the FASM example source directory:
section '.rsrc' resource data readable
directory RT_MENU,menus,\
RT_ICON,icons,\
RT_GROUP_ICON,group_icons
menus:
resource 37,LANG_ENGLISH+SUBLANG_DEFAULT,main_menu
icons:
resource 1,LANG_NEUTRAL,icon_data
group_icons:
resource 17,LANG_NEUTRAL,main_icon
menu main_menu
menuitem '&File',0,MFR_POPUP
menuitem '&New',IDM_NEW,0
menuseparator
menuitem 'E&xit',IDM_EXIT,MFR_END
menuitem '&Help',0,MFR_POPUP + MFR_END
menuitem '&About...',IDM_ABOUT,MFR_END
icon main_icon,icon_data,'minipad.ico'
Wow The fastes reply around!!
The minipad.asm was the example I was reffering to, I shall try your code later today.
I have read some threads and must say that I'm looking forward to Privalov's document/tutorial when it's been released.
Almost all people I'm been talking to is pointing me to MASM there is a lot of usefull example and help around but not many (yet) in FASM.
Thank you bAZiK!
l0k3
The minipad.asm was the example I was reffering to, I shall try your code later today.
I have read some threads and must say that I'm looking forward to Privalov's document/tutorial when it's been released.
Almost all people I'm been talking to is pointing me to MASM there is a lot of usefull example and help around but not many (yet) in FASM.
Thank you bAZiK!
l0k3