git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6467
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
friend void wxTimerCallback(wxTimer * timer);
public:
- wxTimer();
+ wxTimer() { Init(); }
+ wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
+ { Init(); }
~wxTimer();
virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
virtual bool IsRunning() const { return m_id != 0; }
protected:
+ void Init();
+
long m_id;
private:
timer->Notify();
}
-wxTimer::wxTimer()
+void wxTimer::Init()
{
m_id = 0;
+ m_milli = 1000;
}
wxTimer::~wxTimer()