From 101ca36412b3e7b8851b6b48a4f6cbc17d9f9eff Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Jun 2012 14:46:58 +0000 Subject: bitmap operations were removed from TopToolBar and replaced with IcoLib git-svn-id: http://svn.miranda-ng.org/main/trunk@379 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/YAMN/services.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/YAMN') diff --git a/protocols/YAMN/services.cpp b/protocols/YAMN/services.cpp index b0b524eddc..cdb87aecfa 100644 --- a/protocols/YAMN/services.cpp +++ b/protocols/YAMN/services.cpp @@ -312,10 +312,10 @@ int AddTopToolbarIcon(WPARAM,LPARAM) TTBButton btn = { 0 }; btn.cbSize = sizeof(TTBButton); btn.pszServiceUp = MS_YAMN_FORCECHECK; - btn.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; + btn.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP | TTBBF_ICONBYHANDLE; btn.name = Translate("Check mail"); - btn.hbBitmapUp = LoadBmpFromIcon(g_LoadIconEx(5)); - btn.hbBitmapDown = LoadBmpFromIcon(g_LoadIconEx(6)); + btn.hIconHandleUp = g_GetIconHandle(5); + btn.hIconHandleDn = g_GetIconHandle(6); hTTButton = (HANDLE)CallService(MS_TTB_ADDBUTTON, (WPARAM)&btn, 0); CallService(MS_TTB_SETBUTTONOPTIONS, MAKEWPARAM((WORD)TTBO_TIPNAME, (WORD)hTTButton), (LPARAM)Translate("Check mail")); } -- cgit v1.2.3