VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-19 23:49:34 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-26 17:43:47 +0200
commit03de885b133fe7355a1d758ad91cf374132f516f (patch)
treea4b52e9ffeb9b6e7c54791ec9d9764cc2863bdff /src/Mount/Mount.c
parent6b3a26bc407ea66ec30130a271868f185f6aa36e (diff)
downloadVeraCrypt-03de885b133fe7355a1d758ad91cf374132f516f.tar.gz
VeraCrypt-03de885b133fe7355a1d758ad91cf374132f516f.zip
Windows: Set keyboard focus to PIM field when "Use PIM" is checked.
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r--src/Mount/Mount.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index 310217a2..0895915a 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -2264,6 +2264,8 @@ BOOL CALLBACK PasswordChangeDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
ShowWindow (GetDlgItem( hwndDlg, IDC_PIM_HELP), SW_SHOW);
}
+ SetFocus (GetDlgItem (hwndDlg, IDC_OLD_PIM));
+
return 1;
}
@@ -2274,6 +2276,8 @@ BOOL CALLBACK PasswordChangeDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
ShowWindow (GetDlgItem( hwndDlg, IDC_PIM), SW_SHOW);
ShowWindow (GetDlgItem( hwndDlg, IDC_PIM_HELP), SW_SHOW);
+ SetFocus (GetDlgItem (hwndDlg, IDC_PIM));
+
return 1;
}
@@ -2816,6 +2820,8 @@ BOOL CALLBACK PasswordDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa
ShowWindow (GetDlgItem( hwndDlg, IDT_PIM), SW_SHOW);
ShowWindow (GetDlgItem( hwndDlg, IDC_PIM), SW_SHOW);
ShowWindow (GetDlgItem( hwndDlg, IDC_PIM_HELP), SW_SHOW);
+
+ SetFocus (GetDlgItem (hwndDlg, IDC_PIM));
return 1;
}
@@ -3359,6 +3365,8 @@ BOOL CALLBACK MountOptionsDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
ShowWindow (GetDlgItem( hwndDlg, IDT_PIM), SW_SHOW);
ShowWindow (GetDlgItem( hwndDlg, IDC_PIM), SW_SHOW);
ShowWindow (GetDlgItem( hwndDlg, IDC_PIM_HELP), SW_SHOW);
+
+ SetFocus (GetDlgItem (hwndDlg, IDC_PIM));
return 1;
}