diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-03-09 12:59:20 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-03-09 12:59:20 +0000 |
commit | db96bee8b5d8849bc8af7c47c162ba6b461a4177 (patch) | |
tree | fb1cb7bc1b737ee5d38ec876a58f61f75741c208 /plugins/NewXstatusNotify/src/utils.cpp | |
parent | e01f0a233002645f505d828d0698a0f1829fd2cb (diff) |
First version of NewXStatusNotify that can log status changes in db and display them in the message window. (fixes #553)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8494 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/utils.cpp')
-rw-r--r-- | plugins/NewXstatusNotify/src/utils.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/NewXstatusNotify/src/utils.cpp b/plugins/NewXstatusNotify/src/utils.cpp index a86f7e80bc..08e61f1dd2 100644 --- a/plugins/NewXstatusNotify/src/utils.cpp +++ b/plugins/NewXstatusNotify/src/utils.cpp @@ -21,6 +21,29 @@ #include "common.h"
+
+// From NewEventNotify :-)
+bool CheckMsgWnd(MCONTACT hContact)
+{
+ MessageWindowInputData mwid;
+ mwid.cbSize = sizeof(MessageWindowInputData);
+ mwid.hContact = hContact;
+ mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH;
+
+ MessageWindowData mwd;
+ mwd.cbSize = sizeof(MessageWindowData);
+ mwd.hContact = hContact;
+ if (CallService(MS_MSG_GETWINDOWDATA, (WPARAM) &mwid, (LPARAM) &mwd) != NULL)
+ return false;
+
+ if (mwd.hwndWindow != NULL && (mwd.uState & MSG_WINDOW_STATE_EXISTS))
+ return true;
+
+ return false;
+}
+
+
+
TCHAR *db2t(DBVARIANT *dbv)
{
TCHAR *buff;
|