|
-
August 24th, 2011, 10:21 PM
#1
HMENU: How to get parent menu? (build in function)
Hi everyone,
Faced with a following problem:
I have a drop down menu with items. Each item has a sub menu.
The structure is as follows:
subid1
id0----subid1
subid1
subid1
id1----subid1
subid1
all sub items has the same id so when WM_MENUCOMMAND arrives it is necessary to determine the parent menu.
Found nothing in MSDN.
Do i need to interate through all id-x menus comparing the handle from WM_MEMUCOMMAND to current menu handle? Does win has internal tree of menu's handles?
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|