Dirk Lange
June 10th, 2003, 04:58 PM
Hello,
I've some problems with the macros of the message maps.
I have conceptionally two classes of buttons. They are
both from type CContainedWindow and members of CFrame.
I want to distinguish what Buttontype was clicked. Because
the Buttons are not static the differentiation at the ID isn't
a good solution. So I try to use alternative message maps, but
the COMMAND_HANDLER are only avalible in the message map 0.
The dokumentation says nothing about not to use COMMAND_HANDLER in
ALT_MSG_MAP's.
Has anyone an idea
Best Regards
Dirk
Dirk.Lange@vr-web.de
Sample:
//In the sample i've used ButtonID's for testing.
BEGIN_MSG_MAP(CFrame)
...
ALT_MSG_MAP(1)
COMMAND_HANDLER(9364,BN_CLICKED,OnButtonType1) //ButtonType 1 clicked
ALT_MSG_MAP(2)
COMMAND_HANDLER(101,BN_CLICKED,OnButtonType2) //ButtonType 2 clicked
END_MSG_MAP()
I've some problems with the macros of the message maps.
I have conceptionally two classes of buttons. They are
both from type CContainedWindow and members of CFrame.
I want to distinguish what Buttontype was clicked. Because
the Buttons are not static the differentiation at the ID isn't
a good solution. So I try to use alternative message maps, but
the COMMAND_HANDLER are only avalible in the message map 0.
The dokumentation says nothing about not to use COMMAND_HANDLER in
ALT_MSG_MAP's.
Has anyone an idea
Best Regards
Dirk
Dirk.Lange@vr-web.de
Sample:
//In the sample i've used ButtonID's for testing.
BEGIN_MSG_MAP(CFrame)
...
ALT_MSG_MAP(1)
COMMAND_HANDLER(9364,BN_CLICKED,OnButtonType1) //ButtonType 1 clicked
ALT_MSG_MAP(2)
COMMAND_HANDLER(101,BN_CLICKED,OnButtonType2) //ButtonType 2 clicked
END_MSG_MAP()