X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dfef5ac200277eb1943cde5c1beafa2f392ab88..fb35f0c79ca42d888391f0394dec56d04cf71890:/src/msw/toplevel.cpp?ds=sidebyside diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 91804dda88..14caef0e56 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -88,9 +88,9 @@ wxDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) switch ( message ) { case WM_INITDIALOG: - // for this message, returning TRUE tells system to set focus to the - // first control in the dialog box - return TRUE; + // for this message, returning TRUE tells system to set focus to + // the first control in the dialog box, but as we set the focus + // ourselves, we return FALSE from here as well, so fall through default: // for all the other ones, FALSE means that we didn't process the