Fix menu check marks not being removed after closing the panels

For both "Clipboard History" and "Character Panel" panels.

Fix #9216
This commit is contained in:
Don HO 2020-12-07 23:14:42 +01:00
parent c9c2d1e376
commit 59a0c7c3d8
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
2 changed files with 14 additions and 0 deletions

View File

@ -68,6 +68,13 @@ INT_PTR CALLBACK AnsiCharPanel::run_dlgProc(UINT message, WPARAM wParam, LPARAM
{
switch (((LPNMHDR)lParam)->code)
{
case DMN_CLOSE:
{
::SendMessage(_hParent, WM_COMMAND, IDM_EDIT_CHAR_PANEL, 0);
return TRUE;
}
case NM_DBLCLK:
{
LPNMITEMACTIVATE lpnmitem = (LPNMITEMACTIVATE) lParam;

View File

@ -273,6 +273,13 @@ INT_PTR CALLBACK ClipboardHistoryPanel::run_dlgProc(UINT message, WPARAM wParam,
}
}
break;
case WM_NOTIFY:
{
if (((LPNMHDR)lParam)->code == DMN_CLOSE)
::SendMessage(_hParent, WM_COMMAND, IDM_EDIT_CLIPBOARDHISTORY_PANEL, 0);
break;
}
case WM_SIZE:
{