diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-12 12:47:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-12 12:47:35 +0300 |
commit | 002aca2fb53de2d7593e305c99190c52c3d72391 (patch) | |
tree | c5a8dd3155d751ec63bc6ee1f8c022253ba44ca5 /plugins/TabSRMM/src/container.cpp | |
parent | 2093ff88d5badf348372057c59453175412f0dd7 (diff) |
tabSRMM: some unused/obsoleted events removed
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index acebc25dc2..1c9a0122bb 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -1369,7 +1369,7 @@ panel_found: if (iSelection - IDM_CONTAINERMENU >= 0) {
ptrW tszName(db_get_wsa(0, CONTAINER_KEY, szIndex));
if (hDlg && tszName != nullptr)
- SendMessage(hDlg, DM_CONTAINERSELECTED, 0, tszName);
+ dat->SwitchToContainer(tszName);
}
return 1;
}
@@ -1403,11 +1403,10 @@ panel_found: case ID_TABMENU_ATTACHTOCONTAINER:
hDlg = GetTabWindow(pContainer->m_hwndTabs, GetTabItemFromMouse(pContainer->m_hwndTabs, &pt));
if (hDlg)
- CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_SELECTCONTAINER), hwndDlg, SelectContainerDlgProc, (LPARAM)hDlg);
+ ((CMsgDialog *)GetWindowLongPtr(hDlg, GWLP_USERDATA))->SelectContainer();
break;
case ID_TABMENU_CONTAINEROPTIONS:
- if (pContainer->m_hWndOptions == nullptr)
- CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_CONTAINEROPTIONS), hwndDlg, DlgProcContainerOptions, (LPARAM)pContainer);
+ pContainer->OptionsDialog();
break;
case ID_TABMENU_CLOSECONTAINER:
SendMessage(hwndDlg, WM_CLOSE, 0, 0);
@@ -1750,8 +1749,7 @@ panel_found: case IDM_MOREOPTIONS:
if (IsIconic(pContainer->m_hwnd))
SendMessage(pContainer->m_hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
- if (pContainer->m_hWndOptions == nullptr)
- CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_CONTAINEROPTIONS), hwndDlg, DlgProcContainerOptions, (LPARAM)pContainer);
+ pContainer->OptionsDialog();
break;
case SC_MAXIMIZE:
pContainer->m_oldSize.cx = pContainer->m_oldSize.cy = 0;
|