Click here to Skip to main content
15,890,438 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: DDX DLL and CComboBoxImpl in WTL Pin
bryces23-Nov-03 11:53
bryces23-Nov-03 11:53 
GeneralRe: DDX DLL and CComboBoxImpl in WTL Pin
bryces23-Nov-03 12:29
bryces23-Nov-03 12:29 
GeneralRe: DDX DLL and CComboBoxImpl in WTL Pin
Michael Dunn23-Nov-03 14:57
sitebuilderMichael Dunn23-Nov-03 14:57 
GeneralRe: DDX DLL and CComboBoxImpl in WTL Pin
bryces23-Nov-03 15:17
bryces23-Nov-03 15:17 
GeneralRe: DDX DLL and CComboBoxImpl in WTL Pin
Michael Dunn23-Nov-03 17:37
sitebuilderMichael Dunn23-Nov-03 17:37 
GeneralRe: DDX DLL and CComboBoxImpl in WTL Pin
bryces23-Nov-03 17:57
bryces23-Nov-03 17:57 
GeneralATL & DHTML Pin
Leesen18-Nov-03 5:33
Leesen18-Nov-03 5:33 
GeneralTemplate and message map Pin
Stephane David18-Nov-03 3:59
Stephane David18-Nov-03 3:59 
In my application, I'm using template controls to change the font and colors of any of my MFC controls.

As I need some messages, I have a message map like that.

BEGIN_TEMPLATE_MESSAGE_MAP(class BASE_TYPE, CColorCtrl<base_type>, BASE_TYPE)
//BEGIN_MESSAGE_MAP(class BASE_TYPE, CColorCtrl<base_type>, BASE_TYPE)
//{{AFX_MSG_MAP(CColorCtrl)
ON_WM_CTLCOLOR_REFLECT()
ON_WM_CTLCOLOR()
ON_WM_DESTROY()
ON_WM_TIMER()
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_TEMPLATE_MESSAGE_MAP()

The BEGIN_TEMPLATE_MESSAGE_MAP macro is defined here.


#define BEGIN_TEMPLATE_MESSAGE_MAP(theTemplArgs, theClass, baseClass) \
template <thetemplargs> \
const AFX_MSGMAP* PASCAL theClass::_GetBaseMessageMap() \
{ return &baseClass::messageMap; } \
template <thetemplargs> \
const AFX_MSGMAP* theClass::GetMessageMap() const \
{ return &theClass::messageMap; } \
template <thetemplargs> \
AFX_COMDAT AFX_DATADEF const AFX_MSGMAP theClass::messageMap = \
{ &theClass::_GetBaseMessageMap, &theClass::_messageEntries[0] }; \
template <thetemplargs> \
AFX_COMDAT const AFX_MSGMAP_ENTRY theClass::_messageEntries[] = \
{ \


My pb is I get an error message saying that "_GetBaseMessageMap" is not a member of CColorCtrl<base_type>.

The code was working with Visual Studio 6.0, but does no longer work with Visual Studio .Net

How can I port it to .Net?
GeneralRe: Template and message map Pin
Member 20218605-Jun-05 22:50
Member 20218605-Jun-05 22:50 
GeneralTemplate issue.. Pin
GDavy18-Nov-03 2:11
GDavy18-Nov-03 2:11 
GeneralRe: Template issue.. Pin
GDavy18-Nov-03 2:16
GDavy18-Nov-03 2:16 
GeneralRe: Template issue.. Pin
GDavy18-Nov-03 3:25
GDavy18-Nov-03 3:25 
GeneralIOleInPlaceObjectWindowLessImpl::GetDropTarget Pin
Jörgen Sigvardsson18-Nov-03 0:31
Jörgen Sigvardsson18-Nov-03 0:31 
GeneralParent-Child windows relationship Pin
Gabriel.P.G17-Nov-03 10:46
Gabriel.P.G17-Nov-03 10:46 
QuestionHow do I read one vector from another? Pin
WREY16-Nov-03 17:08
WREY16-Nov-03 17:08 
AnswerRe: How do I read one vector from another? Pin
Michael Dunn16-Nov-03 18:46
sitebuilderMichael Dunn16-Nov-03 18:46 
GeneralRe: How do I read one vector from another? Pin
WREY16-Nov-03 21:44
WREY16-Nov-03 21:44 
GeneralRe: How do I read one vector from another? Pin
berndg17-Nov-03 3:13
berndg17-Nov-03 3:13 
GeneralRe: How do I read one vector from another? Pin
WREY17-Nov-03 8:19
WREY17-Nov-03 8:19 
GeneralRe: How do I read one vector from another? Pin
berndg17-Nov-03 20:31
berndg17-Nov-03 20:31 
GeneralRe: How do I read one vector from another? Pin
WREY17-Nov-03 22:07
WREY17-Nov-03 22:07 
GeneralRe: How do I read one vector from another? Pin
berndg17-Nov-03 22:25
berndg17-Nov-03 22:25 
GeneralRe: How do I read one vector from another? Pin
WREY17-Nov-03 23:28
WREY17-Nov-03 23:28 
GeneralRe: How do I read one vector from another? Pin
Andreas Saurwein21-Nov-03 11:31
Andreas Saurwein21-Nov-03 11:31 
GeneralRe: How do I read one vector from another? Pin
WREY24-Nov-03 14:48
WREY24-Nov-03 14:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.