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 --- plugins/WhenWasIt/hooked_events.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'plugins/WhenWasIt/hooked_events.cpp') diff --git a/plugins/WhenWasIt/hooked_events.cpp b/plugins/WhenWasIt/hooked_events.cpp index 20e9bfc86d..e24e642612 100644 --- a/plugins/WhenWasIt/hooked_events.cpp +++ b/plugins/WhenWasIt/hooked_events.cpp @@ -84,7 +84,6 @@ int UnhookEvents() UnhookEvent(hExtraImageApply); UnhookEvent(hContactSettingChanged); UnhookEvent(hTopToolBarModuleLoaded); - //UnhookEvent(hContactSendMessage); KillTimers(); @@ -158,8 +157,7 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) cl.pszName = "Add/change user &birthday"; hmAddChangeBirthday = (HANDLE) CallService(MS_CLIST_ADDCONTACTMENUITEM, 0, (LPARAM) &cl); - if(ServiceExists(MS_HOTKEY_REGISTER)) - { + if(ServiceExists(MS_HOTKEY_REGISTER)) { HOTKEYDESC hotkey = {0}; hotkey.cbSize = sizeof(hotkey); hotkey.dwFlags = HKD_TCHAR; @@ -185,13 +183,9 @@ int OnTopToolBarModuleLoaded(WPARAM wParam, LPARAM lParam) ttb.cbSize = sizeof(TTBButton); ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; ttb.pszServiceDown = MS_WWI_CHECK_BIRTHDAYS; - HBITMAP bitmap = LoadBitmap(hInstance, MAKEINTRESOURCE(IDB_TTB_CHECK)); - ttb.hbBitmapUp = (HBITMAP) bitmap; - ttb.hbBitmapDown = (HBITMAP) bitmap; - ttb.name = Translate("Check for birthdays"); + ttb.hIconUp = ttb.hIconDn = hiCheckMenu; + ttb.name = "Check for birthdays"; CallService(MS_TTB_ADDBUTTON, (WPARAM) &ttb, 0); - //DeleteObject(icon); - return 0; } -- cgit v1.2.3