WinCE build fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2007-02-13 15:52:15 +00:00
parent b5085b0273
commit b70362998b
2 changed files with 17 additions and 2 deletions

View File

@ -234,14 +234,20 @@ DWORD wxGUIAppTraits::WaitForThread(WXHANDLE hThread)
if ( !wxEventLoop::GetActive() )
return DoSimpleWaitForThread(hThread);
const DWORD wakeMask =
QS_ALLINPUT // return as soon as there are any events
#if !defined(__WXWINCE__)
| QS_ALLPOSTMESSAGE
#endif
;
return ::MsgWaitForMultipleObjects
(
1, // number of objects to wait for
(HANDLE *)&hThread, // the objects
false, // wait for any objects, not all
INFINITE, // no timeout
QS_ALLINPUT | // return as soon as there are any events
QS_ALLPOSTMESSAGE
wakeMask
);
}

View File

@ -786,6 +786,9 @@ void wxTopLevelWindowMSW::SetLayoutDirection(wxLayoutDirection dir)
void wxTopLevelWindowMSW::DoGetPosition(int *x, int *y) const
{
#ifndef __WXWINCE__
if ( IsIconized() )
{
WINDOWPLACEMENT wp;
@ -821,11 +824,15 @@ void wxTopLevelWindowMSW::DoGetPosition(int *x, int *y) const
}
//else: normal case
#endif // __WXWINCE__
wxTopLevelWindowBase::DoGetPosition(x, y);
}
void wxTopLevelWindowMSW::DoGetSize(int *width, int *height) const
{
#ifndef __WXWINCE__
if ( IsIconized() )
{
WINDOWPLACEMENT wp;
@ -846,6 +853,8 @@ void wxTopLevelWindowMSW::DoGetSize(int *width, int *height) const
}
//else: normal case
#endif
wxTopLevelWindowBase::DoGetSize(width, height);
}