Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message replaces an existing submenu with a new one.

Syntax

SHCMBM_SETSUBMENU
  wParam = 
wParam;
  lParam = (HMENU) 
hmenu;

Parameters

wParam

Passed through to the button on the menu. It is processed by the application.

Note:
For Windows Mobile, the wParamparameter is reserved for future use and must be set to zero.
hmenu

Address of an NMNEWMENUstructure. The hMenuparameter is a handle to the Newsubmenu.

Return Value

Returns the menu handle to the menu that was replaced by the menu specified by the lParam.

Requirements

Header aygshell.h
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later