|
-
April 3rd, 1999, 12:48 PM
#1
MACRO - MessageMap
I am trying to replace the compile time message map with a runtime version. Has anyone done this?
I have tried coping the MACRO code, but for some reason it does not execute?
My static message map.
BEGIN_MESSAGE_MAP(CButtonOwnerDraw, CButton)
ON_COMMAND(CButtonOwnerDraw::One, TB_One)
The MSVC macro code.
#define ON_COMMAND(id, memberFxn) \
{ WM_COMMAND, CN_COMMAND, (WORD)id, (WORD)id, AfxSig_vv, (AFX_PMSG)&memberFxn },
// ON_COMMAND(id, OnFoo) is the same as
// ON_CONTROL(0, id, OnFoo) or ON_BN_CLICKED(0, id, OnFoo)
Phil McGahan
(303) 252-8889
12100 Elizabeth St.
Thornton, Colorado 80241
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|