From 6ba9eb829a0b95bf9e6c6bdc9ed37d1d3947b87b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 Jul 2012 07:42:40 +0000 Subject: correct mir_free usage git-svn-id: http://svn.miranda-ng.org/main/trunk@808 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/modern_tbbutton.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'plugins/Clist_modern/modern_tbbutton.cpp') diff --git a/plugins/Clist_modern/modern_tbbutton.cpp b/plugins/Clist_modern/modern_tbbutton.cpp index 3082ecf317..bdb09be349 100644 --- a/plugins/Clist_modern/modern_tbbutton.cpp +++ b/plugins/Clist_modern/modern_tbbutton.cpp @@ -431,7 +431,7 @@ static LRESULT CALLBACK TollbarButtonProc(HWND hwndDlg, UINT msg, WPARAM wParam { LRESULT lr = SendMessage(GetParent(hwndDlg), WM_NCHITTEST, wParam, lParam); if (lr == HTLEFT || lr == HTRIGHT || lr == HTBOTTOM || lr == HTTOP || lr == HTTOPLEFT || lr == HTTOPRIGHT - || lr == HTBOTTOMLEFT || lr == HTBOTTOMRIGHT) + || lr == HTBOTTOMLEFT || lr == HTBOTTOMRIGHT) return HTTRANSPARENT; break; } @@ -638,7 +638,7 @@ static void PaintWorker(TBBUTTONDATA *lpSBData, HDC hdcPaint , POINT * pOffset) { HBRUSH hbr = NULL; - if (lpSBData->nStateId == PBS_PRESSED||lpSBData->nStateId == PBS_HOT) + if (lpSBData->nStateId == PBS_PRESSED || lpSBData->nStateId == PBS_HOT) hbr = GetSysColorBrush(COLOR_3DLIGHT); else { RECT btnRect; @@ -673,7 +673,7 @@ static void PaintWorker(TBBUTTONDATA *lpSBData, HDC hdcPaint , POINT * pOffset) FillRect(hdcMem, &rcClient, hbr); DeleteObject(hbr); } - if (lpSBData->nStateId == PBS_HOT||lpSBData->fFocused) { + if (lpSBData->nStateId == PBS_HOT || lpSBData->fFocused) { if (lpSBData->pbState) DrawEdge(hdcMem,&rcClient, EDGE_ETCHED,BF_RECT|BF_SOFT); else DrawEdge(hdcMem,&rcClient, BDR_RAISEDOUTER,BF_RECT|BF_SOFT|BF_FLAT); @@ -724,16 +724,16 @@ static void PaintWorker(TBBUTTONDATA *lpSBData, HDC hdcPaint , POINT * pOffset) { /* Check sizes*/ - if (hHasIcon && - (rcIcon.right>rcTemp.right || - rcIcon.bottom>rcTemp.bottom || - rcIcon.left < rcTemp.left || + if (hHasIcon && + (rcIcon.right>rcTemp.right || + rcIcon.bottom>rcTemp.bottom || + rcIcon.left < rcTemp.left || rcIcon.top < rcTemp.top)) hHasIcon = NULL; - if (fHasText && - (rcText.right>rcTemp.right || - rcText.bottom>rcTemp.bottom || - rcText.left < rcTemp.left || + if (fHasText && + (rcText.right>rcTemp.right || + rcText.bottom>rcTemp.bottom || + rcText.left < rcTemp.left || rcText.top < rcTemp.top)) fHasText = FALSE; } -- cgit v1.2.3