wxMSWUniv build fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,11 +44,11 @@ public:
|
|||||||
//
|
//
|
||||||
// calling this function with NULL argument restores the normal event
|
// calling this function with NULL argument restores the normal event
|
||||||
// handling
|
// handling
|
||||||
static void SetCriticalWindow(wxWindow *win) { ms_winCritical = win; }
|
static void SetCriticalWindow(wxWindowMSW *win) { ms_winCritical = win; }
|
||||||
|
|
||||||
// return true if there is no critical window or if this window is [a child
|
// return true if there is no critical window or if this window is [a child
|
||||||
// of] the critical one
|
// of] the critical one
|
||||||
static bool AllowProcessing(wxWindow *win)
|
static bool AllowProcessing(wxWindowMSW *win)
|
||||||
{
|
{
|
||||||
return !ms_winCritical || IsChildOfCriticalWindow(win);
|
return !ms_winCritical || IsChildOfCriticalWindow(win);
|
||||||
}
|
}
|
||||||
@@ -56,11 +56,11 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
// check if the given window is a child of ms_winCritical (which must be
|
// check if the given window is a child of ms_winCritical (which must be
|
||||||
// non NULL)
|
// non NULL)
|
||||||
static bool IsChildOfCriticalWindow(wxWindow *win);
|
static bool IsChildOfCriticalWindow(wxWindowMSW *win);
|
||||||
|
|
||||||
|
|
||||||
// critical window or NULL
|
// critical window or NULL
|
||||||
static wxWindow *ms_winCritical;
|
static wxWindowMSW *ms_winCritical;
|
||||||
|
|
||||||
// the loop exit code
|
// the loop exit code
|
||||||
int m_exitcode;
|
int m_exitcode;
|
||||||
|
@@ -85,7 +85,7 @@ private:
|
|||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
wxEventLoop *wxEventLoopBase::ms_activeLoop = NULL;
|
wxEventLoop *wxEventLoopBase::ms_activeLoop = NULL;
|
||||||
wxWindow *wxEventLoop::ms_winCritical = NULL;
|
wxWindowMSW *wxEventLoop::ms_winCritical = NULL;
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// ctor/dtor
|
// ctor/dtor
|
||||||
@@ -112,7 +112,7 @@ void wxEventLoop::ProcessMessage(WXMSG *msg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxEventLoop::IsChildOfCriticalWindow(wxWindow *win)
|
bool wxEventLoop::IsChildOfCriticalWindow(wxWindowMSW *win)
|
||||||
{
|
{
|
||||||
while ( win )
|
while ( win )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user