X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..48def411aa04dc852ceb56532b5c8ccc58ad5b9d:/include/wx/msw/evtloop.h diff --git a/include/wx/msw/evtloop.h b/include/wx/msw/evtloop.h index 01c9d934d1..2869b07a92 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,15 @@ public: // override/implement base class virtuals virtual bool Dispatch(); + virtual int DispatchTimeout(unsigned long timeout); virtual void WakeUp(); -protected: - virtual void OnNextIteration(); + // MSW-specific function to process a single message + virtual void ProcessMessage(WXMSG *msg); }; +#endif // wxUSE_CONSOLE_EVENTLOOP + #endif // wxUSE_GUI/!wxUSE_GUI #endif // _WX_MSW_EVTLOOP_H_