X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..8dc5f051c7e2c3d0e8e5b94dd829d00c47d7e51c:/include/wx/msw/evtloop.h diff --git a/include/wx/msw/evtloop.h b/include/wx/msw/evtloop.h index 01c9d934d1..88ab13492b 100644 --- a/include/wx/msw/evtloop.h +++ b/include/wx/msw/evtloop.h @@ -32,6 +32,10 @@ protected: // get the next message from queue and return true or return false if we // got WM_QUIT or an error occurred bool GetNextMessage(WXMSG *msg); + + // same as above but with a timeout and return value can be -1 meaning that + // time out expired in addition to + int GetNextMessageTimeout(WXMSG *msg, unsigned long timeout); }; #if wxUSE_GUI @@ -66,6 +70,7 @@ public: // override/implement base class virtuals virtual bool Dispatch(); + virtual int DispatchTimeout(unsigned long timeout); virtual void WakeUp(); protected: @@ -83,6 +88,8 @@ private: #else // !wxUSE_GUI +#if wxUSE_CONSOLE_EVENTLOOP + class WXDLLIMPEXP_BASE wxConsoleEventLoop : public wxMSWEventLoopBase { public: @@ -90,12 +97,18 @@ public: // override/implement base class virtuals virtual bool Dispatch(); + virtual int DispatchTimeout(unsigned long timeout); virtual void WakeUp(); + // MSW-specific function to process a single message + virtual void ProcessMessage(WXMSG *msg); + protected: virtual void OnNextIteration(); }; +#endif // wxUSE_CONSOLE_EVENTLOOP + #endif // wxUSE_GUI/!wxUSE_GUI #endif // _WX_MSW_EVTLOOP_H_