diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 8378923a5c..8219f12a43 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -462,7 +462,7 @@ bool wxTopLevelWindowMSW::CreateDialog(const void *dlgTemplate, // Let the system position the window, just set its size. ::SetWindowPos(GetHwnd(), 0, 0, 0, w, h, - SWP_NOMOVE | SWP_NOZORDER); + SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE); } else // Move the window to the desired location and set its size too. {