CMessageMap::ProcessWindowMessage

Accesses the message map identified by dwMsgMapID in a CMessageMap-derived class.

virtual BOOL ProcessWindowMessage( 
   HWND hWnd, 
   UINT uMsg, 
   WPARAM wParam, 
   LPARAM lParam, 
   LRESULT& lResult, 
   DWORD dwMsgMapID  
) = 0;

Parameters

  • hWnd
    [in] The handle to the window receiving the message.

  • uMsg
    [in] The message sent to the window.

  • wParam
    [in] Additional message-specific information.

  • lParam
    [in] Additional message-specific information.

  • lResult
    [out] The result of the message processing.

  • dwMsgMapID
    [in] The identifier of the message map that will process the message. The default message map, declared with BEGIN_MSG_MAP, is identified by 0. An alternate message map, declared with ALT_MSG_MAP(msgMapID), is identified by msgMapID.

Return Value

TRUE if the message is fully handled; otherwise, FALSE.

Remarks

Called by the window procedure of a CContainedWindow object or of an object that is dynamically chaining to the message map.

Requirements

Header: atlwin.h

See Also

Reference

CMessageMap Class

CHAIN_MSG_MAP_DYNAMIC

Other Resources

CMessageMap Members