Windows: Ensure focus is always set to the drive list upon startup
This commit is contained in:
parent
0a69062c6b
commit
97701eb2e9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue