Hi! I've succeeded once writing in C++ a right-aligned help menu but I can't do it in ASM. Here a code fragment:

LOCAL mii :MENUITEMINFO

mov mii.cbSize, SIZEOF MENUITEMINFO
mov mii.fMask, MIIM_TYPE

invoke GetMenuItemInfo, hEditorMenu, EDITOR_MENU_HILFE, 0, ADDR mii

mov mii.fType, MFT_RIGHTJUSTIFY
mov mii.dwTypeData, 0

?!?

invoke SetMenuItemInfo, hEditorMenu, EDITOR_MENU_HILFE, 0, ADDR mii
Near
?!?
there's something missing. Could anybody help me, please? Thanx a lot! stem
Posted on 2001-02-22 16:59:00 by stem
Well there is two ways of doing this. In a resource file you can just specifiy the HELP attribute like this: POPUP "Help", HELP BEGIN MENUITEM "About", IDM_ABOUT END This will show the help menu on the right, simply replace the text inside the "Help" with whatever you want your menu called. Or create your menu at run time using the MF_HELP attribute. Hope this helps! See ya, Ben
Posted on 2001-02-22 19:23:00 by cyberben

POPUP "Help", HELP
I get "invalid numeric expression".
Posted on 2001-02-23 05:51:00 by stem
Hi, I am using it this way in my resource file:

#define IDM_GET 1
#define IDM_EXIT 2
#define IDM_HELP_ME 3

FirstMenu MENU
{
 POPUP "&File"
 {
  MENUITEM "&Get", IDM_GET
  MENUITEM "&Exit", IDM_EXIT
 }
 POPUP "&Help",HELP
 {
  MENUITEM "&Help me",IDM_HELP_ME
 }
}
In my cases this works! :D Hope this helps you! :rolleyes: Stefan
Posted on 2001-02-23 06:26:00 by Stefan Krause
Hi, Yes, this is explained in the Menu tutorial of Iczelion. Just have a look...
Posted on 2001-02-23 06:57:00 by Vom-bonjour:-()