From 97701eb2e9836105a27802c5f18ba3c63846755d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 16 Oct 2015 01:04:40 +0200 Subject: Windows: Ensure focus is always set to the drive list upon startup --- src/Mount/Mount.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Mount') diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index cd82c08e..c546b212 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -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); -- cgit v1.2.3