VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format
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/Format
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/Format')
-rw-r--r--src/Format/Tcformat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c
index 54196dee..141900b0 100644
--- a/src/Format/Tcformat.c
+++ b/src/Format/Tcformat.c
@@ -5481,6 +5481,10 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
ShowWindow (GetDlgItem( hwndDlg, IDT_PIM), PimEnable? SW_SHOW : SW_HIDE);
ShowWindow (GetDlgItem( hwndDlg, IDC_PIM), PimEnable? SW_SHOW : SW_HIDE);
ShowWindow (GetDlgItem( hwndDlg, IDC_PIM_HELP), PimEnable? SW_SHOW : SW_HIDE);
+ if (PimEnable)
+ {
+ SetFocus (GetDlgItem (hwndDlg, IDC_PIM));
+ }
}
return 1;
}