set the focus to the first control in the dialog when it is shwon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-05-26 12:04:12 +00:00
parent 39c2d6bde1
commit dea077b164

View File

@@ -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