From 7fe1a8b5a92c3254739b792247c8839d0087a23a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 6 Apr 2002 22:23:47 +0000 Subject: [PATCH] no significant changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 03ef96e8d8..8283ec20d6 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -72,21 +72,25 @@ extern const wxChar *wxCanvasClassName; // wxTopLevelWindowMSW implementation // ============================================================================ +// ---------------------------------------------------------------------------- +// wxDialog helpers +// ---------------------------------------------------------------------------- + // Dialog window proc LONG APIENTRY _EXPORT -wxDlgProc(HWND WXUNUSED(hWnd), UINT message, WPARAM WXUNUSED(wParam), LPARAM WXUNUSED(lParam)) +wxDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { - if ( message == WM_INITDIALOG ) + switch ( message ) { - // for this message, returning TRUE tells system to set focus to the - // first control in the dialog box - return TRUE; - } - else - { - // for all the other ones, FALSE means that we didn't process the - // message - return FALSE; + case WM_INITDIALOG: + // for this message, returning TRUE tells system to set focus to the + // first control in the dialog box + return TRUE; + + default: + // for all the other ones, FALSE means that we didn't process the + // message + return FALSE; } } -- 2.45.2