ITrackShellMenu::SetObscured method
Coordinates obscured items on a toolbar with items in a menu.
Syntax
HRESULT SetObscured( [in] HWND hwndTB, [in] IUnknown *punkBand, [in] DWORD dwSMSetFlags );
Parameters
- hwndTB [in]
-
Type: HWND
A handle to a toolbar control whose buttons have command IDs that correspond to menu IDs in the tracked menu.
- punkBand [in]
-
Type: IUnknown*
If this parameter points to a COM object that supports the IShellMenu interface, menu items that correspond to visible toolbar buttons are filtered out of the menu so that they do not appear in both places.
If this parameter is NULL or points to a COM object that does not support the IShellMenu interface, then the obscured buttons in the toolbar are added to the shell menu in the position specified in dwSMSetFlags.
- dwSMSetFlags [in]
-
Type: DWORD
One of the following values.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Obscured buttons are those buttons that cannot be displayed due to toolbar size limitations. Commonly, to see them you must press the chevron at the end of the toolbar.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
DLL |
|