fix "ok button doesn't have focus initially"

This commit is contained in:
Chris Danford
2004-12-01 05:28:08 +00:00
parent f1fa226d30
commit ad9eb1db70
@@ -41,6 +41,10 @@ static BOOL CALLBACK OKWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
CString sMessage = g_sMessage;
sMessage.Replace( "\n", "\r\n" );
SetWindowText( GetDlgItem(hWnd, IDC_MESSAGE), sMessage );
// Focus is on any of the controls in the dialog by default.
// I'm not sure why. Set focus to the button manually. -Chris
SetFocus( GetDlgItem(hWnd, IDOK) );
}
break;
case WM_DESTROY: