The GetSubMenu function retrieves the handle of the drop-down menu or submenu activated by the specified menu item.
HMENU GetSubMenu(
|
HMENU hMenu, |
// handle of menu |
|
int nPos |
// menu item position |
|
); |
If the function succeeds, the return value is the handle of the drop-down menu or submenu activated by the menu item. If the menu item does not activate a drop-down menu or submenu, the return value is NULL.