From 6e4d38544e8ebe64b94bb90fb3c7ed1112366434 Mon Sep 17 00:00:00 2001 From: Brady McDermott Date: Mon, 23 Oct 2023 14:06:02 -0600 Subject: [PATCH] vista compatibility complete --- progmgr/dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progmgr/dialog.c b/progmgr/dialog.c index bc94b16..310be0e 100644 --- a/progmgr/dialog.c +++ b/progmgr/dialog.c @@ -114,7 +114,7 @@ BOOL CALLBACK NewGroupDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM // Check that all the applicable fields are filled out, // and if not then set the focus to the offending field if (!(bOKEnabled = GetDlgItemText(hWndDlg, IDD_NAME, (LPWSTR)&szBuffer, ARRAYSIZE(szBuffer)))) - SendDlgItemMessage(hWndDlg, IDD_NAME, EM_TAKEFOCUS, 0, 0); + SetFocus(GetDlgItem(hWndDlg, IDD_NAME)); // Enable or disable the OK button based on the information EnableWindow(GetDlgItem(hWndDlg, IDD_OK), bOKEnabled);