From aea65132ee68b589074ffddc0aaef2c7b01dba51 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Jun 2012 15:33:44 +0000 Subject: - 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 --- plugins/TopToolBar/launchbt.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/TopToolBar/launchbt.cpp') 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; -- cgit v1.2.3