Condividi tramite


CContainedWindowT::SwitchMessageMap

Changes which message map will be used to process the contained window's messages.

void SwitchMessageMap( 
   DWORD dwMsgMapID  
);

Parameters

  • dwMsgMapID
    [in] The message map identifier. To use the default message map declared with BEGIN_MSG_MAP, pass zero. To use an alternate message map declared with ALT_MSG_MAP(msgMapID), pass msgMapID.

Remarks

The message map must be defined in the containing object.

You initially specify the message map identifier in the constructor.

Requirements

Header: atlwin.h

See Also

Reference

CContainedWindowT Class

CContainedWindowT::CContainedWindowT

CContainedWindowT::m_dwMsgMapID