summaryrefslogtreecommitdiff
path: root/plugins/PasteIt/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-21 14:34:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-21 14:34:07 +0300
commitc9b740a178828eae5cc4be7ab054e5f26d3a27e7 (patch)
treee15ce76cb41feb3375a76c95d861294b899bfe48 /plugins/PasteIt/src
parent6024e32d70da7a7c703de51e30b6c6407df8a745 (diff)
MessageWindowEventData: useless structure removed
Diffstat (limited to 'plugins/PasteIt/src')
-rw-r--r--plugins/PasteIt/src/PasteIt.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/PasteIt/src/PasteIt.cpp b/plugins/PasteIt/src/PasteIt.cpp
index ee1393169e..7091b635b1 100644
--- a/plugins/PasteIt/src/PasteIt.cpp
+++ b/plugins/PasteIt/src/PasteIt.cpp
@@ -297,18 +297,20 @@ static void InitTabsrmmButton()
hTabsrmmButtonPressed = HookEvent(ME_MSG_BUTTONPRESSED, TabsrmmButtonPressed);
}
-static int WindowEvent(WPARAM, MessageWindowEventData* lParam)
+static int WindowEvent(WPARAM uType, LPARAM lParam)
{
- if (lParam->uType == MSG_WINDOW_EVT_OPEN) {
- char *szProto = Proto_GetBaseAccountName(lParam->hContact);
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
+
+ if (uType == MSG_WINDOW_EVT_OPEN) {
+ char *szProto = Proto_GetBaseAccountName(pDlg->m_hContact);
if (szProto && (INT_PTR)szProto != CALLSERVICE_NOTFOUND) {
- if (Contact::IsGroupChat(lParam->hContact, szProto)) {
- (*contactWindows)[lParam->hContact] = lParam->hwndInput;
+ if (Contact::IsGroupChat(pDlg->m_hContact, szProto)) {
+ (*contactWindows)[pDlg->m_hContact] = pDlg->GetInput();
}
}
}
- else if (lParam->uType == MSG_WINDOW_EVT_CLOSE) {
- std::map<MCONTACT, HWND>::iterator it = contactWindows->find(lParam->hContact);
+ else if (uType == MSG_WINDOW_EVT_CLOSE) {
+ std::map<MCONTACT, HWND>::iterator it = contactWindows->find(pDlg->m_hContact);
if (it != contactWindows->end()) {
contactWindows->erase(it);
}