Windows: Ensure focus is always set to the drive list upon startup

This commit is contained in:
Mounir IDRASSI 2015-10-16 01:04:40 +02:00
parent 0a69062c6b
commit 97701eb2e9
1 changed files with 4 additions and 0 deletions

View File

@ -374,6 +374,10 @@ static void InitMainDialog (HWND hwndDlg)
if(nSelectedDriveIndex > SendMessage (GetDlgItem (hwndDlg, IDC_DRIVELIST), LVM_GETITEMCOUNT, 0, 0)/2)
SendMessage(GetDlgItem (hwndDlg, IDC_DRIVELIST), LVM_SCROLL, 0, 10000);
}
else
{
SendMessage(hwndDlg, WM_NEXTDLGCTL, (WPARAM) GetDlgItem (hwndDlg, IDC_DRIVELIST), 1L);
}
SendMessage (GetDlgItem (hwndDlg, IDC_NO_HISTORY), BM_SETCHECK, bHistory ? BST_UNCHECKED : BST_CHECKED, 0);
EnableDisableButtons (hwndDlg);