IMenuBand::IsMenuMessage method

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

pmsg [in]

Type: MSG*

A pointer to an MSG structure.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft