Platform and compiler-specific checking for MSW and Mac now done
in wx/xxx/chkconf.h. Removed some very obsolete settings, and MSW-specific settings from Mac's setup0.h. wxTimer now derives from wxEvtHandler. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#define wxTIMER_ONE_SHOT TRUE
|
||||
|
||||
// the interface of wxTimer class
|
||||
class WXDLLEXPORT wxTimerBase : public wxObject
|
||||
class WXDLLEXPORT wxTimerBase : public wxEvtHandler
|
||||
{
|
||||
public:
|
||||
// ctors and initializers
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
|
||||
// default: if you don't call SetOwner(), your only chance to get timer
|
||||
// notifications is to override Notify() in the derived class
|
||||
wxTimerBase() { Init(); SetOwner(NULL); }
|
||||
wxTimerBase() { Init(); SetOwner(this); }
|
||||
|
||||
// ctor which allows to avoid having to override Notify() in the derived
|
||||
// class: the owner will get timer notifications which can be handled with
|
||||
|
Reference in New Issue
Block a user