IShellMenu::InvalidateItem method (shobjidl_core.h)
Redraws an item in a menu band.
Syntax
HRESULT InvalidateItem(
[in] LPSMDATA psmd,
[in] DWORD dwFlags
);
Parameters
[in] psmd
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.
[in] dwFlags
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
Requirement | Value |
---|---|
Minimum supported client | Windows XP with SP2 [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Shell32.dll |