summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/launchbt.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-13 15:33:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-13 15:33:44 +0000
commitaea65132ee68b589074ffddc0aaef2c7b01dba51 (patch)
tree5621896e715dda0bf45155854201e22db9434aa4 /plugins/TopToolBar/launchbt.cpp
parentd89dd2fe88191ce9b8ff0f68b93b45d00cff64b4 (diff)
- old junk cleaning
- buttons' icons were added to options git-svn-id: http://svn.miranda-ng.org/main/trunk@393 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/launchbt.cpp')
-rw-r--r--plugins/TopToolBar/launchbt.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/TopToolBar/launchbt.cpp b/plugins/TopToolBar/launchbt.cpp
index fd0e15d600..3e24b0c2b1 100644
--- a/plugins/TopToolBar/launchbt.cpp
+++ b/plugins/TopToolBar/launchbt.cpp
@@ -77,13 +77,10 @@ INT_PTR ModifyLButton(WPARAM wParam, LPARAM lParam)
INT_PTR InsertLBut(int id)
{
- HBITMAP DefLUp = LoadBitmap(hInst, MAKEINTRESOURCE(IDB_LAUNCHDN));
- HBITMAP DefLDn = LoadBitmap(hInst, MAKEINTRESOURCE(IDB_LAUNCHUP));
-
TTBButton ttb = { 0 };
ttb.cbSize = sizeof(ttb);
- //ttb.hbBitmapDown = DefLDn; !!!!!!!!!!!!!!
- //ttb.hbBitmapUp = DefLUp; !!!!!!!!!!!!!!
+ ttb.hIconDn = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_RUN), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
+ ttb.hIconUp = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_RUN), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
ttb.dwFlags = TTBBF_VISIBLE|TTBBF_ISLBUTTON;
ttb.pszServiceDown = TTB_LAUNCHSERVICE;
ttb.lParamDown = id;