This documentation is archived and is not being maintained.


Defines an entry in a message map.

CHAIN_MSG_MAP_ALT_MEMBER( theChainMember, msgMapID )


[in] The name of the data member containing the message map.
[in] The message map identifier.


CHAIN_MSG_MAP_ALT_MEMBER directs messages to an alternate message map in a data member. You must have declared this alternate message map with ALT_MSG_MAP(msgMapID). To direct messages to a data member's default message map (declared with BEGIN_MSG_MAP), use CHAIN_MSG_MAP_MEMBER. For an example, see CHAIN_MSG_MAP_MEMBER.

Note   Always begin a message map with BEGIN_MSG_MAP. You can then declare subsequent alternate message maps with ALT_MSG_MAP. The END_MSG_MAP macro marks the end of the message map. Every message map must have exactly one instance of BEGIN_MSG_MAP and END_MSG_MAP.

For more information about using message maps in ATL, see Message Maps.

See Also

Message Map Macros | ATL Macros | CHAIN_MSG_MAP_ALT