diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-09 12:32:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-09 12:32:45 +0000 |
commit | cfc759efa580c2aea1b5e882e9811d7aeea9b593 (patch) | |
tree | 5a4dc96a0cb1c84fa14bfb496eb318c2242decfe /src | |
parent | 90ad8a832e60b3134fc1362cdf2e0617391e3160 (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@879 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/button/button.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/button/button.cpp b/src/modules/button/button.cpp index ed00c94f3b..f3384f3fcc 100644 --- a/src/modules/button/button.cpp +++ b/src/modules/button/button.cpp @@ -261,9 +261,11 @@ static void PaintWorker(MButtonCtrl *ctl, HDC hdcPaint) static LRESULT CALLBACK MButtonWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
MButtonCtrl* bct = (MButtonCtrl *)GetWindowLongPtr(hwndDlg, 0);
- if (bct && bct->fnWindowProc)
- if ( bct->fnWindowProc(hwndDlg, msg, wParam, lParam))
- return bct->lResult;
+ if (bct && bct->fnWindowProc) {
+ LRESULT res = bct->fnWindowProc(hwndDlg, msg, wParam, lParam);
+ if (res)
+ return res;
+ }
switch(msg) {
case WM_NCCREATE:
|