Skip to content

Commit

Permalink
vista compatibility complete
Browse files Browse the repository at this point in the history
  • Loading branch information
freedom7341 committed Oct 23, 2023
1 parent 5d17a98 commit 6e4d385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progmgr/dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6e4d385

Please sign in to comment.