From 9fcf8dce5638362799de647f8eb9711195e41992 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 22 Mar 2013 12:31:45 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4159 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_tbbutton.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins/Clist_modern/src/modern_tbbutton.cpp') 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 ); -- cgit v1.2.3