Problem Regarding PopupMenu Form | developer.brewmp.com Problem Regarding PopupMenu Form | developer.brewmp.com

Developer

Problem Regarding PopupMenu Form

Forums:

Hi,

All

How to add seperator/submenu option in a PopupMenu Form.
I tried with the following code for the separator but can't get success.

int result=0;
result=ISHELL_CreateInstance(pMe->pIShell,AEECLSID_POPUPMENUFORM,(void**)&pMe->optionMenu);
if(result==0)
{
result=IPOPUPMENU_LoadMenuItem(pMe->optionMenu,RES_FILE,MENUITEM1,0,MMF_ENABLED);

result+=IPOPUPMENU_LoadMenuItem(pMe->optionMenu,RES_FILE,MENUITEM2,1,MMF_SEPARATOR);
result+=IPOPUPMENU_LoadMenuItem(pMe->optionMenu,RES_FILE,MENUITEM3,2,MMF_ENABLED);
result+=IPOPUPMENU_LoadMenuItem(pMe->optionMenu,RES_FILE,MENUITEM4,3,MMF_ENABLED);
result+=IPOPUPMENU_LoadMenuItem(pMe->optionMenu,RES_FILE,MENUITEM5,4,MMF_ENABLED);
result+=IPOPUPMENU_LoadMenuItem(pMe->optionMenu,RES_FILE,MENUITEM6,5,MMF_ENABLED);
}
After executing the code there is a black sadow in menu item 3 (id=2) and the menu item 2 (id=1) is removed from the menu.

its urgent....