X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe25efa327a25b76f9ad3e9285d1cbbb51209b42..54081dc5c22c4ef292eb343b4c5b8821ac92dbbd:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 8ec677be5e..54fb437cd0 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1470,7 +1470,7 @@ bool wxWindow::DoPopupMenu(wxMenu *menu, int x, int y) ::ClientToScreen(hWnd, &point); wxCurrentPopupMenu = menu; ::TrackPopupMenu(hMenu, TPM_RIGHTBUTTON, point.x, point.y, 0, hWnd, NULL); - wxYield(); + wxYieldIfNeeded(); wxCurrentPopupMenu = NULL; menu->SetInvokingWindow(NULL); @@ -3163,6 +3163,7 @@ bool wxWindow::HandleGetMinMaxInfo(void *mmInfo) } // generate an artificial resize event +/* FUNCTION IS NOW A MEMBER OF wxFrame - gt void wxWindow::SendSizeEvent() { RECT r; @@ -3178,6 +3179,7 @@ void wxWindow::SendSizeEvent() (void)::PostMessage(GetHwnd(), WM_SIZE, SIZE_RESTORED, MAKELPARAM(r.right - r.left, r.bottom - r.top)); } +*/ // --------------------------------------------------------------------------- // command messages