summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_tbbutton.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-22 12:31:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-22 12:31:45 +0000
commit9fcf8dce5638362799de647f8eb9711195e41992 (patch)
tree289eb79706398ce3a8f9662e866a22ccd94d66f6 /plugins/Clist_modern/src/modern_tbbutton.cpp
parent319ec9408e1f8beda226481058a864477d156715 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4159 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_tbbutton.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_tbbutton.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/Clist_modern/src/modern_tbbutton.cpp b/plugins/Clist_modern/src/modern_tbbutton.cpp
index e8f59245a6..d4b23904bc 100644
--- a/plugins/Clist_modern/src/modern_tbbutton.cpp
+++ b/plugins/Clist_modern/src/modern_tbbutton.cpp
@@ -297,13 +297,11 @@ static LRESULT CALLBACK ToolbarButtonProc(HWND hwndDlg, UINT msg, WPARAM wParam
case WM_LBUTTONDOWN:
{
- int xPos = (( int )( short ) LOWORD( lParam ));
- int yPos = (( int )( short ) HIWORD( lParam ));
- POINT ptMouse = { xPos, yPos };
+ POINT ptMouse = UNPACK_POINT(lParam);
RECT rcClient;
- GetClientRect( bct->hwnd, &rcClient );
- if ( !PtInRect( &rcClient, ptMouse )) {
+ GetClientRect(bct->hwnd, &rcClient);
+ if ( !PtInRect(&rcClient, ptMouse)) {
bct->fHotMark = FALSE;
ReleaseCapture();
}
@@ -326,7 +324,7 @@ static LRESULT CALLBACK ToolbarButtonProc(HWND hwndDlg, UINT msg, WPARAM wParam
case WM_LBUTTONUP:
if ( GetCapture() == bct->hwnd ) {
- POINT ptMouse = { LOWORD(lParam), HIWORD(lParam) };
+ POINT ptMouse = UNPACK_POINT(lParam);
RECT rcClient;
GetClientRect( bct->hwnd, &rcClient );