Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl & Report Style Pin
Derek Waters20-Nov-01 16:28
Derek Waters20-Nov-01 16:28 
GeneralRe: CListCtrl & Report Style Pin
Matt Newman20-Nov-01 16:45
Matt Newman20-Nov-01 16:45 
GeneralRe: CListCtrl & Report Style Pin
Derek Waters20-Nov-01 16:47
Derek Waters20-Nov-01 16:47 
GeneralRe: CListCtrl & Report Style Pin
Matt Newman20-Nov-01 16:51
Matt Newman20-Nov-01 16:51 
GeneralRe: CListCtrl & Report Style Pin
Derek Waters20-Nov-01 16:52
Derek Waters20-Nov-01 16:52 
GeneralRe: CListCtrl & Report Style Pin
Matt Newman20-Nov-01 16:57
Matt Newman20-Nov-01 16:57 
GeneralRe: CListCtrl & Report Style Pin
Matt Newman22-Nov-01 5:11
Matt Newman22-Nov-01 5:11 
Generaltemplates with multiple params in macros Pin
Jason De Arte19-Nov-01 14:44
Jason De Arte19-Nov-01 14:44 
(Using WTL)
How can I put multiple template params (>1) in a macro definition?
I've been using CHAIN_MSG_MAP() to pass messages to templatized base classes with ease for quite a while now. But today I decided to get a little fancy & in turn break things horribly.

Take the following as an example, the first CHAIN_MSG_MAP works, but why does the second cause a host of compiler errors?
If I use a typedef of the multiple param base class, all will work - but why? There has got to be a method that feels less like a hack.

////////////
template <class T>
class CWorks
{
public:
BEGIN_MSG_MAP(CWorks)
END_MSG_MAP()
};

template <class T, BOOL bSomething>
class CBroken
{
public:
BEGIN_MSG_MAP(CBroken)
END_MSG_MAP()
};

class CMyWindow : public CWindowImpl<CMyWindow>,
public CWorks<CMyWindow>
public CBroken<CMyWindow, TRUE>
{
public:
BEGIN_MSG_MAP(CMyWindow)
CHAIN_MSG_MAP( CWorks<CMyWindow> )
CHAIN_MSG_MAP( CBroken<CMyWindow,TRUE> )
END_MSG_MAP()
};
GeneralRe: templates with multiple params in macros Pin
Michael Dunn19-Nov-01 15:04
sitebuilderMichael Dunn19-Nov-01 15:04 
GeneralCTreeCtrl Help Please! Pin
Vu Nguyen19-Nov-01 14:32
Vu Nguyen19-Nov-01 14:32 
GeneralRe: CTreeCtrl Help Please! Pin
Rassman20-Nov-01 4:15
Rassman20-Nov-01 4:15 
GeneralRe: CTreeCtrl Help Please! Pin
Vu Nguyen20-Nov-01 7:02
Vu Nguyen20-Nov-01 7:02 
GeneralRe: CTreeCtrl Help Please! Pin
Rassman21-Nov-01 2:11
Rassman21-Nov-01 2:11 
QuestionChanging scrollbar colors? Pin
Jim A. Johnson19-Nov-01 12:55
Jim A. Johnson19-Nov-01 12:55 
AnswerRe: Changing scrollbar colors? Pin
Bernhard19-Nov-01 23:32
Bernhard19-Nov-01 23:32 
GeneralRe: Changing scrollbar colors? Pin
Jim A. Johnson20-Nov-01 10:13
Jim A. Johnson20-Nov-01 10:13 
GeneralRe: Changing scrollbar colors? Pin
Bernhard20-Nov-01 19:22
Bernhard20-Nov-01 19:22 
GeneralNews: Ultimate Grid for MFC 5.0 released today Pin
Ed Worsfold19-Nov-01 11:45
Ed Worsfold19-Nov-01 11:45 
QuestionHow can I lock up my application? Pin
Cathy19-Nov-01 11:28
Cathy19-Nov-01 11:28 
AnswerRe: How can I lock up my application? Pin
Anna-Jayne Metcalfe19-Nov-01 12:12
Anna-Jayne Metcalfe19-Nov-01 12:12 
GeneralRe: How can I lock up my application? Pin
Cathy19-Nov-01 12:29
Cathy19-Nov-01 12:29 
GeneralRe: How can I lock up my application? Pin
Nish Nishant19-Nov-01 13:03
sitebuilderNish Nishant19-Nov-01 13:03 
GeneralRe: How can I lock up my application? Pin
Anna-Jayne Metcalfe19-Nov-01 22:56
Anna-Jayne Metcalfe19-Nov-01 22:56 
GeneralRe: How can I lock up my application? Pin
Anna-Jayne Metcalfe19-Nov-01 22:52
Anna-Jayne Metcalfe19-Nov-01 22:52 
Generalc++ and database Pin
19-Nov-01 10:38
suss19-Nov-01 10:38 

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.