diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-28 14:55:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-28 14:55:06 +0300 |
commit | 1e49d6b2cb3812d8e80051cbb3d44891e6532825 (patch) | |
tree | 2ffb8e36641e063d625faece1d380f4ce833d1a6 /plugins/MirFox/src/MirandaUtils.cpp | |
parent | eccbb5307a048e70ac4adb0d3fd333be28245fa8 (diff) |
funny, but without cbSize we have no need in MessageWindowInputData at all
Diffstat (limited to 'plugins/MirFox/src/MirandaUtils.cpp')
-rw-r--r-- | plugins/MirFox/src/MirandaUtils.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/plugins/MirFox/src/MirandaUtils.cpp b/plugins/MirFox/src/MirandaUtils.cpp index c16eca6fe4..0f9b1aad54 100644 --- a/plugins/MirFox/src/MirandaUtils.cpp +++ b/plugins/MirFox/src/MirandaUtils.cpp @@ -357,22 +357,15 @@ int MirandaUtils::on_hook_OpenMW(WPARAM wParam, LPARAM lParam) }
MessageWindowData mwd;
- mwd.hContact = (UINT_PTR)param->targetHandle;
- mwd.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH;
-
- MessageWindowInputData mwid;
- mwid.hContact = (UINT_PTR)param->targetHandle;
- mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH;
-
- delete param;
-
- if (!CallService(MS_MSG_GETWINDOWDATA, (WPARAM)&mwid, (LPARAM)&mwd) && mwd.hwndWindow){
+ if (!CallService(MS_MSG_GETWINDOWDATA, (WPARAM)param->targetHandle, (LPARAM)&mwd) && mwd.hwndWindow){
HWND parent;
HWND hWnd = mwd.hwndWindow;
- while((parent = GetParent(hWnd)) != 0) hWnd = parent; // ensure we have the top level window (need parent window for scriver & tabsrmm)
+ while((parent = GetParent(hWnd)) != 0)
+ hWnd = parent; // ensure we have the top level window (need parent window for scriver & tabsrmm)
ForceForegroundWindow(hWnd);
}
+ delete param;
return 0;
}
|