From 95aa036670a1ce2c461ffd9bd3a586d191ee4675 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Jul 2012 22:48:01 +0000 Subject: - various icolib fixes; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@1061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SpellChecker/ardialog.cpp | 2 +- plugins/SpellChecker/options.cpp | 2 +- plugins/SpellChecker/spellchecker.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SpellChecker') diff --git a/plugins/SpellChecker/ardialog.cpp b/plugins/SpellChecker/ardialog.cpp index dc8a24cd43..6a08585ea1 100644 --- a/plugins/SpellChecker/ardialog.cpp +++ b/plugins/SpellChecker/ardialog.cpp @@ -193,7 +193,7 @@ static INT_PTR CALLBACK AddReplacementDlgProc(HWND hwndDlg, UINT msg, WPARAM wPa HICON hIcon = IcoLib_LoadIcon("spellchecker_enabled"); SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM) hIcon); - IcoLib_ReleaseIcon(hIcon); + Skin_ReleaseIcon(hIcon); SendDlgItemMessage(hwndDlg, IDC_OLD, EM_LIMITTEXT, 256, 0); SendDlgItemMessage(hwndDlg, IDC_NEW, EM_LIMITTEXT, 256, 0); diff --git a/plugins/SpellChecker/options.cpp b/plugins/SpellChecker/options.cpp index 4c8b299266..28886b1126 100644 --- a/plugins/SpellChecker/options.cpp +++ b/plugins/SpellChecker/options.cpp @@ -175,7 +175,7 @@ static void DrawItem(HWND hwndDlg, LPDRAWITEMSTRUCT lpdis, Dictionary *dict) rc.left += ICON_SIZE + 4; - IcoLib_ReleaseIcon(hFlag); + Skin_ReleaseIcon(hFlag); } // Draw text diff --git a/plugins/SpellChecker/spellchecker.cpp b/plugins/SpellChecker/spellchecker.cpp index f11ad5b2fb..a126070604 100644 --- a/plugins/SpellChecker/spellchecker.cpp +++ b/plugins/SpellChecker/spellchecker.cpp @@ -250,7 +250,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) if (hFlag != NULL) { // Already registered - IcoLib_ReleaseIcon(hFlag); + Skin_ReleaseIcon(hFlag); continue; } @@ -2135,7 +2135,7 @@ LRESULT CALLBACK MenuWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) rc.top = (lpdis->rcItem.bottom + lpdis->rcItem.top - ICON_SIZE) / 2; DrawIconEx(lpdis->hDC, rc.left, rc.top, hFlag, 16, 16, 0, NULL, DI_NORMAL); - IcoLib_ReleaseIcon(hFlag); + Skin_ReleaseIcon(hFlag); rc.left += ICON_SIZE + 4; -- cgit v1.2.3