summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_tbbutton.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-09 13:47:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-09 13:47:44 +0000
commita6ad2609bad6a7c4b6f30c17973af9dcaba8c8af (patch)
tree48b23fcfd0b68409659e850e7bc5f5a6099f3413 /plugins/Clist_modern/modern_tbbutton.cpp
parentcfc759efa580c2aea1b5e882e9811d7aeea9b593 (diff)
slightly changed design of custom MButtonCtrl window procedure. Clist Nicer works ok
git-svn-id: http://svn.miranda-ng.org/main/trunk@880 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_tbbutton.cpp')
-rw-r--r--plugins/Clist_modern/modern_tbbutton.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/Clist_modern/modern_tbbutton.cpp b/plugins/Clist_modern/modern_tbbutton.cpp
index dadf53637a..d9d95e7969 100644
--- a/plugins/Clist_modern/modern_tbbutton.cpp
+++ b/plugins/Clist_modern/modern_tbbutton.cpp
@@ -267,17 +267,17 @@ static LRESULT CALLBACK ToolbarButtonProc(HWND hwndDlg, UINT msg, WPARAM wParam
RECT nillRect = {0};
lpSBData->rcMargins = nillRect;
}
- return 0;
+ break;
case BUTTONSETID:
lstrcpynA(lpSBData->szButtonID, (char *)lParam, SIZEOF(lpSBData->szButtonID)-1);
lpSBData->szButtonID[SIZEOF(lpSBData->szButtonID)-1] = '\0';
- return 0;
+ break;
case BUTTONDRAWINPARENT:
if (IsWindowVisible(hwndDlg))
PaintWorker(lpSBData, (HDC) wParam, (POINT*) lParam);
- return 0;
+ break;
case WM_NCPAINT:
case WM_PAINT:
@@ -290,6 +290,7 @@ static LRESULT CALLBACK ToolbarButtonProc(HWND hwndDlg, UINT msg, WPARAM wParam
}
}
ValidateRect(hwndDlg,NULL);
+ lpSBData->lResult = 0;
return 1;
case WM_CAPTURECHANGED: