VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-16 01:04:40 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-18 16:17:09 +0200
commit97701eb2e9836105a27802c5f18ba3c63846755d (patch)
tree5fbde1523412365a3ee461b91335d5f72f4a6fb7 /src/Mount/Mount.c
parent0a69062c6b87a9f704af836afc04844c95271966 (diff)
downloadVeraCrypt-97701eb2e9836105a27802c5f18ba3c63846755d.tar.gz
VeraCrypt-97701eb2e9836105a27802c5f18ba3c63846755d.zip
Windows: Ensure focus is always set to the drive list upon startup
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r--src/Mount/Mount.c4
1 files changed, 4 insertions, 0 deletions
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);