Added SetForegroundWindow() into WM_INITDIALOG

This commit is contained in:
2022-02-19 23:59:24 +03:00
parent 7cd58a9a15
commit 6f6ce164ee

View File

@@ -394,6 +394,7 @@ BOOL CALLBACK DlgProc(HWND hDlg, UINT dlgmsg, WPARAM wParam, LPARAM lParam)
SetDlgItemInt(hDlg, IDC_EDIT_HEIGHT, h, FALSE);
SetDlgItemTextW(hDlg, IDC_EDIT_TITLE, szWinTitle);
SetDlgItemTextW(hDlg, IDC_EDIT_CLASS, szWinClass);
SetForegroundWindow(hDlg);
UpdateWindow(hDlg);
break;
}