diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-10 14:46:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-10 14:46:58 +0000 |
commit | 101ca36412b3e7b8851b6b48a4f6cbc17d9f9eff (patch) | |
tree | a846c60f7c2a7df17b694deba92e7f6df3bbb882 /protocols/YAMN | |
parent | a3fdadd09f12f6b246b11a5156bf6f0358e9a5f8 (diff) |
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
Diffstat (limited to 'protocols/YAMN')
-rw-r--r-- | protocols/YAMN/services.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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"));
}
|