Switched over to using wxEventLoop.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2003-09-21 21:54:03 +00:00
parent 9345ca55cb
commit 598dc9b777
6 changed files with 229 additions and 349 deletions

View File

@@ -68,16 +68,12 @@ public:
wxApp();
virtual ~wxApp();
virtual bool OnInitGui(void);
// override base class (pure) virtuals
virtual int MainLoop(void);
virtual void ExitMainLoop(void);
virtual bool Initialized(void);
virtual bool Pending(void) ;
virtual bool Dispatch(void);
virtual bool Initialize(int& argc, wxChar **argv);
virtual void CleanUp(void);
virtual void Exit();
virtual bool Initialized(void);
virtual bool OnInitGui(void);
virtual bool Yield(bool onlyIfNeeded = FALSE);
virtual void WakeUpIdle(void);
@@ -113,22 +109,15 @@ private:
public:
// Implementation
virtual bool Initialize(int& argc, wxChar **argv);
virtual void CleanUp(void);
static bool RegisterWindowClasses(HAB vHab);
virtual void DoMessage(WXMSG *pMsg);
virtual bool DoMessage(void);
virtual bool ProcessMessage(WXMSG* pMsg);
public:
int m_nCmdShow;
HMQ m_hMq;
protected:
bool m_bKeepGoing ;
DECLARE_EVENT_TABLE()
DECLARE_NO_COPY_CLASS(wxApp)
};
#endif
// _WX_APP_H_

View File

@@ -16,6 +16,8 @@
WXDLLEXPORT_DATA(extern const char*) wxDialogNameStr;
class WXDLLEXPORT wxDialogModalData;
//
// Dialog boxes
//
@@ -147,6 +149,9 @@ protected:
private:
wxWindow* m_pOldFocus;
// this pointer is non-NULL only while the modal event loop is running
wxDialogModalData *m_modalData;
//
// While we are showing a modal dialog we disable the other windows using
// this object