Export (0) Print
Expand All
TRY
Expand Minimize
This topic has not yet been rated - Rate this topic

BEGIN_TEMPLATE_MESSAGE_MAP

Begins the definition of a message map on a class type containing a single template argument.

BEGIN_TEMPLATE_MESSAGE_MAP(theClass, type_name, baseClass )
theClass

Specifies the name of the class whose message map this is.

type_name

The name of the template parameter specified for the class.

baseClass

Specifies the name of the base class of theClass.

This macro is similar to the BEGIN_MESSAGE_MAP macro; however, this macro is intended for classes containing a single template argument.

In the method implementation section of your class, start the message map with the BEGIN_TEMPLATE_MESSAGE_MAP macro; then add macro entries for each of your message-handler methods as you would for a standard message map. As with the BEGIN_MESSAGE_MAP macro, complete the template message map with the END_MESSAGE_MAP macro.

For more information on implementing message maps for template classes, refer to How to: Create a Message Map for a Template Class.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.