IShellMenu::InvalidateItem method
Redraws an item in a menu band.
Syntax
HRESULT InvalidateItem( [in] LPSMDATA psmd, [in] DWORD dwFlags );
Parameters
- psmd [in]
-
Type: LPSMDATA
A pointer to an SMDATA structure that identifies the item to be redrawn. Set this value to NULL to redraw the entire menu.
- dwFlags [in]
-
Type: DWORD
Flags that control how the menu is redrawn. If psmd is NULL, set dwFlags to SMINV_REFRESH. If psmd is set to a valid SMDATA structure, set dwFlags to SMINV_ID | SMINV_REFRESH.
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: