I have a problem with adding a menuitem to new submenu or new subsubmenu at run time, specially handling the parameters in AppendMenu-API-function and other API-functions for creating menu.
First I created three menuitems in menubar at design time with the menu editor. In the third menubaritem I created a new menuitem, first with index = 0
hMenu0 = GetMenu(Me.hWnd)
hSubMenu0 = GetSubMenu(hMenu0, 2) '2 = Third Menuitem in the menubar
b = AppendMenu(hSubMenu0, MF_POPUP, hMenu1, "1")
Where I find the handling result for going on ? Do I find it in hmenu1 ?
What I have to do with that to add a submenu to the first new added item in this submenu.
Can anyone either point me to some code which shows how to realize it, or maybe indicate what I'm doing wrong.