From 03de885b133fe7355a1d758ad91cf374132f516f Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 19 Sep 2015 23:49:34 +0200 Subject: Windows: Set keyboard focus to PIM field when "Use PIM" is checked. --- src/Format/Tcformat.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Format') 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; } -- cgit v1.2.3