From 32dedc767dec565c576b78b786e7a95d76ac806e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 19 Nov 2012 12:51:53 +0000 Subject: - added another helper, ExtraIcon_Clear, to remove an icon from slot; - added ability to pass IcoLib handles instead of icons' names git-svn-id: http://svn.miranda-ng.org/main/trunk@2371 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BuddyExpectator/src/BuddyExpectator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/BuddyExpectator/src') diff --git a/plugins/BuddyExpectator/src/BuddyExpectator.cpp b/plugins/BuddyExpectator/src/BuddyExpectator.cpp index 03b793ad09..b0798c59a4 100644 --- a/plugins/BuddyExpectator/src/BuddyExpectator.cpp +++ b/plugins/BuddyExpectator/src/BuddyExpectator.cpp @@ -153,7 +153,7 @@ LRESULT CALLBACK MissYouPopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPA if ( !db_get_b(PUGetContact(hWnd), MODULE_NAME, "MissYouNotifyAlways", 0)) { db_set_b(PUGetContact(hWnd), MODULE_NAME, "MissYou", 0); if (options.MissYouIcon) - ExtraIcon_SetIcon(hExtraIcon, PUGetContact(hWnd), ""); + ExtraIcon_Clear(hExtraIcon, PUGetContact(hWnd)); } PUDeletePopUp(hWnd); } @@ -167,7 +167,7 @@ LRESULT CALLBACK MissYouPopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPA if (wParam == 1) { db_set_b(PUGetContact(hWnd), MODULE_NAME, "MissYou", 0); if (options.MissYouIcon) - ExtraIcon_SetIcon(hExtraIcon, PUGetContact(hWnd), ""); + ExtraIcon_Clear(hExtraIcon, PUGetContact(hWnd)); PUDeletePopUp(hWnd); } break; @@ -449,7 +449,7 @@ INT_PTR MenuMissYouClick(WPARAM wParam, LPARAM lParam) if (db_get_b((HANDLE)wParam, MODULE_NAME, "MissYou", 0)) { db_set_b((HANDLE)wParam, MODULE_NAME, "MissYou", 0); if (options.MissYouIcon) - ExtraIcon_SetIcon(hExtraIcon, (HANDLE)wParam, ""); + ExtraIcon_Clear(hExtraIcon, (HANDLE)wParam); } else { db_set_b((HANDLE)wParam, MODULE_NAME, "MissYou", 1); -- cgit v1.2.3