// 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
// override/implement base class virtuals
virtual bool Dispatch();
+ virtual int DispatchTimeout(unsigned long timeout);
virtual void WakeUp();
protected:
#else // !wxUSE_GUI
+#if wxUSE_CONSOLE_EVENTLOOP
+
class WXDLLIMPEXP_BASE wxConsoleEventLoop : public wxMSWEventLoopBase
{
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_