mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 08:14:18 +02:00
[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:
parent
ae29f305ea
commit
0844123b44
@ -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));
|
bool isChecked = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, IDC_CHECK_DOCSWITCH, BM_GETCHECK, 0, 0));
|
||||||
::SendMessage(::GetParent(_hParent), NPPM_SHOWDOCSWITCHER, 0, isChecked?TRUE:FALSE);
|
::SendMessage(::GetParent(_hParent), NPPM_SHOWDOCSWITCHER, 0, isChecked?TRUE:FALSE);
|
||||||
|
getFocus();
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
case IDC_CHECK_DOCSWITCH_NOEXTCOLUMN :
|
case IDC_CHECK_DOCSWITCH_NOEXTCOLUMN :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user