IMenuBand::IsMenuMessage method (shobjidl_core.h)

A message pump calls this method to see if any messages should be redirected to the Component Object Model (COM) object.

Syntax

HRESULT IsMenuMessage(
  [in] MSG *pmsg
);

Parameters

[in] pmsg

Type: MSG*

A pointer to an MSG structure.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK
A message should be redirected to the COM object. The application should call IMenuBand::TranslateMenuMessage with this message.
E_FAIL
The menu has exited the menu mode and can be destroyed.

Remarks

If this method returns S_OK, the message loop should not call TranslateMessage or DispatchMessage.

Requirements

Requirement Value
Minimum supported client Windows XP [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