Ten
June 11th, 2005, 07:15 PM
Hi,
i add a menu in a window using a hook:
Example : File - Edit - My_Menu
hMenu = GetMenu(hDlg);
AppendMenu(hMenu, MF_STRING, IDM_PLUS, "My_Menu");
Ok, now i want to add a submenu in 'My_Menu':
hMenu = GetSubMenu(hMenu, 2);
But the Position '2' does not exist cause it's a hooking.
And the question is : How to get a handle to My_Menu without have its Position.
Thanks.
i add a menu in a window using a hook:
Example : File - Edit - My_Menu
hMenu = GetMenu(hDlg);
AppendMenu(hMenu, MF_STRING, IDM_PLUS, "My_Menu");
Ok, now i want to add a submenu in 'My_Menu':
hMenu = GetSubMenu(hMenu, 2);
But the Position '2' does not exist cause it's a hooking.
And the question is : How to get a handle to My_Menu without have its Position.
Thanks.