SHSetSubMenu

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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

Syntax

#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 Value

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

Requirements

Header aygshell.h
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

AYGShell Macros
SHCMBM_SETSUBMENU