IShellMenu::SetMenu method
Appends a static menu to the menu band.
Syntax
HRESULT SetMenu( [in] HMENU hmenu, [in] HWND hwnd, [in] DWORD dwFlags );
Parameters
- hmenu [in]
-
Type: HMENU
The handle of the static menu that is to be appended. This value can be NULL.
- hwnd [in]
-
Type: HWND
The HWND of the owner window. This value can be NULL.
- dwFlags [in]
-
Type: DWORD
Flags that specify how the menu operates.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows XP with SP2 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
DLL |
|
Show: