diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-19 10:50:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-19 10:50:55 +0000 |
commit | 18f47c388bfc624918358517246d1756ed340ef3 (patch) | |
tree | 638d07017405781c1989ab54b8fd416e0abcb8bf /plugins/TabSRMM/src/container.cpp | |
parent | a7eaae2cf935a1b4037d57d912f683d40bd65fc5 (diff) |
fix for deadlock on messages in tabSRMM
git-svn-id: http://svn.miranda-ng.org/main/trunk@7749 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index 1b10afe812..9c3e27b556 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -2473,3 +2473,19 @@ void TSAPI BroadCastContainer(const TContainerData *pContainer, UINT message, WP }
}
}
+
+void TSAPI CloseAllContainers()
+{
+ BOOL fOldHideSetting = PluginConfig.m_HideOnClose;
+
+ while (pFirstContainer != NULL) {
+ if (!IsWindow(pFirstContainer->hwnd))
+ pFirstContainer = pFirstContainer->pNext;
+ else {
+ PluginConfig.m_HideOnClose = FALSE;
+ ::SendMessage(pFirstContainer->hwnd, WM_CLOSE, 0, 1);
+ }
+ }
+
+ PluginConfig.m_HideOnClose = fOldHideSetting;
+}
|