[BUG_FIXED] Fix Preferences dialog loses focus issue (closes ##674)

Fix Preferences dialog loses focus while enabling "Show Docment List
Panel" bug.
This commit is contained in:
Don Ho 2015-08-10 01:33:51 +02:00
parent ae29f305ea
commit 0844123b44

View File

@ -402,6 +402,7 @@ INT_PTR CALLBACK BarsDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM)
{
bool isChecked = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, IDC_CHECK_DOCSWITCH, BM_GETCHECK, 0, 0));
::SendMessage(::GetParent(_hParent), NPPM_SHOWDOCSWITCHER, 0, isChecked?TRUE:FALSE);
getFocus();
}
return TRUE;
case IDC_CHECK_DOCSWITCH_NOEXTCOLUMN :