diff options
Diffstat (limited to 'plugins/Clist_modern/modern_tbbutton.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_tbbutton.cpp | 7 |
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:
|