summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/topbutton.cpp
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2012-06-23 09:59:45 +0000
committerAlexey Kulakov <panda75@bk.ru>2012-06-23 09:59:45 +0000
commitd32a469270d6032ce394418099ebeb17771afc3f (patch)
treecc8149b559d195849b5a4bdec07762ceefc68778 /plugins/TopToolBar/topbutton.cpp
parentd8478067cac03ff0c8378a9915525bedc27231db (diff)
removed unneded icons
fixed internal pushed buttons git-svn-id: http://svn.miranda-ng.org/main/trunk@538 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/topbutton.cpp')
-rw-r--r--plugins/TopToolBar/topbutton.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/TopToolBar/topbutton.cpp b/plugins/TopToolBar/topbutton.cpp
index e5705f5ecd..3091d429b4 100644
--- a/plugins/TopToolBar/topbutton.cpp
+++ b/plugins/TopToolBar/topbutton.cpp
@@ -156,7 +156,10 @@ void TopButtonInt::SetBitmap()
else {
if (GetWindowLongPtr(hwnd, GWL_STYLE) & SS_ICON)
SetWindowLongPtr(hwnd, GWL_STYLE, curstyle | SS_ICON);
- SendMessage(hwnd, BM_SETIMAGE, IMAGE_ICON, (LPARAM)((bPushed)?(hIconDn):(hIconUp)));
+
+ HICON bicon = (hIconDn)?hIconDn:hIconUp;
+
+ SendMessage(hwnd, BM_SETIMAGE, IMAGE_ICON, (LPARAM)((bPushed)?(bicon):(hIconUp)));
SendMessage(hwnd, BM_SETCHECK, bPushed?BST_CHECKED:BST_UNCHECKED ,0);
}
}