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