summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src/frame.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-02-12 15:44:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-02-12 15:44:31 +0000
commitd15f35d8cf97bdfc5c76a687274676b627fe6e83 (patch)
tree48ee9dac1cd2fdc8b00d8fbe0f8400d24591b2df /plugins/MyDetails/src/frame.cpp
parent675e45c8deeeb75975fa5b48395c6395d86fba59 (diff)
fix for mixing simple & extended statuses in MyDetails
git-svn-id: http://svn.miranda-ng.org/main/trunk@3570 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src/frame.cpp')
-rw-r--r--plugins/MyDetails/src/frame.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp
index 7be6ff38f9..6317432064 100644
--- a/plugins/MyDetails/src/frame.cpp
+++ b/plugins/MyDetails/src/frame.cpp
@@ -2078,6 +2078,7 @@ LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
break;
}
+ case WM_NCMOUSELEAVE:
case WM_MOUSELEAVE:
{
TRACKMOUSEEVENT tme;
@@ -2108,10 +2109,7 @@ LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
case WM_MOUSEMOVE:
proto = protocols->Get(data->protocol_number);
if (proto != NULL) {
- POINT p;
- p.x = LOWORD(lParam);
- p.y = HIWORD(lParam);
-
+ POINT p = { LOWORD(lParam), HIWORD(lParam) };
MakeHover(hwnd, data->draw_img, &data->mouse_over_img, &p, &data->img_rect);
MakeHover(hwnd, data->draw_nick, &data->mouse_over_nick, &p, &data->nick_rect);
MakeHover(hwnd, data->draw_proto, &data->mouse_over_proto, &p, &data->proto_rect);