diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-17 18:17:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-17 18:17:10 +0000 |
commit | 1c6e6e286bbe94a091361853935e10b8fc0a7dfc (patch) | |
tree | 9f76e10b09d3e657683790b54b3ad3b3e24a3a3d /plugins/Scriver/src/msgdialog.cpp | |
parent | 115f98866ceca0b37b9009f6bc1201f873cc5de4 (diff) |
- unused module removed from Scriver;
- window data for a chat session is now filled properly
git-svn-id: http://svn.miranda-ng.org/main/trunk@7692 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 51bf39deb2..dc7281a159 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -143,16 +143,16 @@ static void saveDraftMessage(HWND hwnd, HANDLE hContact, int codepage) void NotifyLocalWinEvent(HANDLE hContact, HWND hwnd, unsigned int type)
{
- MessageWindowEventData mwe = { 0 };
- BOOL bChat = FALSE;
- if (hContact==NULL || hwnd==NULL) return;
- mwe.cbSize = sizeof(mwe);
+ if (hContact == NULL || hwnd == NULL)
+ return;
+
+ MessageWindowEventData mwe = { sizeof(mwe) };
mwe.hContact = hContact;
mwe.hwndWindow = hwnd;
mwe.szModule = SRMMMOD;
mwe.uType = type;
mwe.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH;
- bChat = (WindowList_Find(g_dat.hMessageWindowList, hContact) == NULL);
+ BOOL bChat = (WindowList_Find(g_dat.hMessageWindowList, hContact) == NULL);
mwe.hwndInput = GetDlgItem(hwnd, bChat ? IDC_CHAT_MESSAGE : IDC_MESSAGE);
mwe.hwndLog = GetDlgItem(hwnd, bChat ? IDC_CHAT_LOG : IDC_LOG);
NotifyEventHooks(hHookWinEvt, 0, (LPARAM)&mwe);
|