diff options
author | Alexey Kulakov <panda75@bk.ru> | 2012-06-23 09:59:45 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2012-06-23 09:59:45 +0000 |
commit | d32a469270d6032ce394418099ebeb17771afc3f (patch) | |
tree | cc8149b559d195849b5a4bdec07762ceefc68778 /plugins/TopToolBar/topbutton.cpp | |
parent | d8478067cac03ff0c8378a9915525bedc27231db (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.cpp | 5 |
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);
}
}
|