From ad9eb1db70efcec3fbcfb66f53747bc53a9bf83b Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 1 Dec 2004 05:28:08 +0000 Subject: [PATCH] fix "ok button doesn't have focus initially" --- stepmania/src/arch/Dialog/DialogDriver_Win32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/arch/Dialog/DialogDriver_Win32.cpp b/stepmania/src/arch/Dialog/DialogDriver_Win32.cpp index 99dc87a91a..5142df15ac 100644 --- a/stepmania/src/arch/Dialog/DialogDriver_Win32.cpp +++ b/stepmania/src/arch/Dialog/DialogDriver_Win32.cpp @@ -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: