summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_window.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-31 21:26:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-31 21:26:44 +0300
commit004000c7793963f8b6e2755822d8afeb87d11cff (patch)
treee8721aa3dcf581f4fa223d2a40a255d36576476c /plugins/TabSRMM/src/chat_window.cpp
parentb424db2d01e39a59447f4ed54e98da3d155c6fab (diff)
unused control id removed
Diffstat (limited to 'plugins/TabSRMM/src/chat_window.cpp')
-rw-r--r--plugins/TabSRMM/src/chat_window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp
index dc5b73e4b4..7b2fd8f54a 100644
--- a/plugins/TabSRMM/src/chat_window.cpp
+++ b/plugins/TabSRMM/src/chat_window.cpp
@@ -1314,7 +1314,7 @@ LRESULT CChatRoomDlg::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam)
}
if (wParam == VK_F4 && isCtrl && !isAlt) { // ctrl-F4 (close tab)
- SendMessage(m_hwnd, WM_COMMAND, MAKEWPARAM(IDC_CLOSE, BN_CLICKED), 0);
+ CloseTab();
return 0;
}
@@ -2175,7 +2175,7 @@ INT_PTR CChatRoomDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
return FALSE;
case IDC_CLOSE:
- SendMessage(m_hwnd, WM_CLOSE, 0, 1);
+ CloseTab();
break;
case IDC_SELFTYPING: