W
Wei-Chao Hsu
Hi,
I read a Marco definition in a source file, which is shown below.
#define BEGIN_EVENT_TABLE(theClass, baseClass) \
const wxEventTable theClass::sm_eventTable = \
{ &baseClass::sm_eventTable, &theClass::sm_eventTableEntries[0] };
Because I am not a C++ expert, I don't understand the meaning of the
definition. Why does two variables, baseClass::sm_eventTable and
theClass::sm_eventTableEntries[0], appear in the braces at the same time.
Which value is assigned to theClass::sm_eventTable. Is there anyone could
explain for me? Thank you!
Dennis
I read a Marco definition in a source file, which is shown below.
#define BEGIN_EVENT_TABLE(theClass, baseClass) \
const wxEventTable theClass::sm_eventTable = \
{ &baseClass::sm_eventTable, &theClass::sm_eventTableEntries[0] };
Because I am not a C++ expert, I don't understand the meaning of the
definition. Why does two variables, baseClass::sm_eventTable and
theClass::sm_eventTableEntries[0], appear in the braces at the same time.
Which value is assigned to theClass::sm_eventTable. Is there anyone could
explain for me? Thank you!
Dennis