summaryrefslogtreecommitdiff
path: root/src/modules/button/button.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-09 12:03:05 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-09 12:03:05 +0000
commit90ad8a832e60b3134fc1362cdf2e0617391e3160 (patch)
treed7e9441653367de966b1142a94ff56997bec0b69 /src/modules/button/button.cpp
parenta8fe13ffc15d8715eb9be11eed27bdfa1538ea70 (diff)
missing resource
git-svn-id: http://svn.miranda-ng.org/main/trunk@878 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/button/button.cpp')
-rw-r--r--src/modules/button/button.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/button/button.cpp b/src/modules/button/button.cpp
index f3384f3fcc..ed00c94f3b 100644
--- a/src/modules/button/button.cpp
+++ b/src/modules/button/button.cpp
@@ -261,11 +261,9 @@ 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) {
- LRESULT res = bct->fnWindowProc(hwndDlg, msg, wParam, lParam);
- if (res)
- return res;
- }
+ if (bct && bct->fnWindowProc)
+ if ( bct->fnWindowProc(hwndDlg, msg, wParam, lParam))
+ return bct->lResult;
switch(msg) {
case WM_NCCREATE: