Several updates for fixing the subclassing problems and accelerator processing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -184,7 +184,7 @@ bool wxApp::RegisterWindowClasses(
|
||||
if (!::WinRegisterClass( vHab
|
||||
,wxFrameClassName
|
||||
,(PFNWP)wxWndProc
|
||||
,CS_SIZEREDRAW | CS_MOVENOTIFY | CS_SYNCPAINT
|
||||
,CS_SIZEREDRAW | CS_MOVENOTIFY | CS_SYNCPAINT | CS_FRAME
|
||||
,sizeof(ULONG)
|
||||
))
|
||||
{
|
||||
@@ -651,11 +651,11 @@ int wxApp::MainLoop()
|
||||
#if wxUSE_THREADS
|
||||
wxMutexGuiLeaveOrEnter();
|
||||
#endif // wxUSE_THREADS
|
||||
while (!Pending() && ProcessIdle())
|
||||
{
|
||||
// wxUsleep(10000);
|
||||
}
|
||||
DoMessage();
|
||||
while (!Pending() && ProcessIdle())
|
||||
{
|
||||
// wxUsleep(10000);
|
||||
}
|
||||
DoMessage();
|
||||
}
|
||||
return (int)svCurrentMsg.mp1;
|
||||
} // end of wxApp::MainLoop
|
||||
@@ -761,11 +761,11 @@ bool wxApp::ProcessMessage(
|
||||
//
|
||||
// Anyone for a non-translation message? Try youngest descendants first.
|
||||
//
|
||||
for (pWnd = pWndThis; pWnd; pWnd = pWnd->GetParent())
|
||||
{
|
||||
if (pWnd->OS2ProcessMessage(pWxmsg))
|
||||
return TRUE;
|
||||
}
|
||||
// for (pWnd = pWndThis; pWnd; pWnd = pWnd->GetParent())
|
||||
// {
|
||||
// if (pWnd->OS2ProcessMessage(pWxmsg))
|
||||
// return TRUE;
|
||||
// }
|
||||
return FALSE;
|
||||
} // end of wxApp::ProcessMessage
|
||||
|
||||
|
Reference in New Issue
Block a user