SHSetSubMenu

This macro replaces an existing submenu with a new one by sending a SHCMBM_SETSUBMENU message.

#define SHSetSubMenu(hWndMB,ID_MENU) (HMENU)SendMessage((hWndMB), \
        SHCMBM_SETSUBMENU, (WPARAM)0, (LPARAM)ID_MENU);

Parameters

  • hWndMB
    Handle to the specified menu.
  • ID_MENU
    Menu identifier for the menu that will be the new submenu.

Return Values

Returns the HMENU to the menu that was replaced by ID_MENU.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Aygshell.h.

See Also

AYGShell Macros | SHCMBM_SETSUBMENU

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.