The CommandBar_GetMenu function retrieves the handle to a menu on the command bar.
HMENU CommandBar_GetMenu(HWND hwndCB, int iButton);
Header file: | Commctrl.h |
Platforms: | H/PC |
Windows CE versions: | 1.0 and later |
The handle to the menu identified by the index in the iButton parameter. If this function fails, it returns a value of NULL.
If the separator button identified by the iButton parameter does not contain a menu bar, the CommandBar_GetMenu function will fail.