From 75b1ff75c42644eb36552762652e4b0c9ff071bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Nov 2012 14:11:01 +0000 Subject: final switch to the typed icolib api git-svn-id: http://svn.miranda-ng.org/main/trunk@2152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BasicHistory/src/RichHtmlExport.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'plugins/BasicHistory/src/RichHtmlExport.cpp') diff --git a/plugins/BasicHistory/src/RichHtmlExport.cpp b/plugins/BasicHistory/src/RichHtmlExport.cpp index 5a772a4914..d1254e4dcc 100644 --- a/plugins/BasicHistory/src/RichHtmlExport.cpp +++ b/plugins/BasicHistory/src/RichHtmlExport.cpp @@ -318,18 +318,21 @@ void RichHtmlExport::WriteHeader(const std::wstring &fileName, const std::wstrin ExtractFile(IDR_CSS, css); ExtractFile(IDR_JS, folder + _T("\\history.js")); - HICON ico = (HICON)CallService(MS_SKIN2_GETICONBYHANDLE, 0, (LPARAM)hPlusExIcon); + HICON ico = Skin_GetIconByHandle(hPlusExIcon); IcoSave(folder + _T("\\pnode.ico"), ico); - CallService(MS_SKIN2_RELEASEICON, (LPARAM)ico, 0); - ico = (HICON)CallService(MS_SKIN2_GETICONBYHANDLE, 0, (LPARAM)hMinusExIcon); + Skin_ReleaseIcon(ico); + + ico = Skin_GetIconByHandle(hMinusExIcon); IcoSave(folder + _T("\\mnode.ico"), ico); - CallService(MS_SKIN2_RELEASEICON, (LPARAM)ico, 0); - ico = (HICON)CallService(MS_SKIN2_GETICONBYHANDLE, 0, (LPARAM)hEventIcons[0]); + Skin_ReleaseIcon(ico); + + ico = Skin_GetIconByHandle(hEventIcons[0]); IcoSave(folder + _T("\\event0.ico"), ico); - CallService(MS_SKIN2_RELEASEICON, (LPARAM)ico, 0); - ico = (HICON)CallService(MS_SKIN2_GETICONBYHANDLE, 0, (LPARAM)hEventIcons[1]); + Skin_ReleaseIcon(ico); + + ico = Skin_GetIconByHandle(hEventIcons[1]); IcoSave(folder + _T("\\event1.ico"), ico); - CallService(MS_SKIN2_RELEASEICON, (LPARAM)ico, 0); + Skin_ReleaseIcon(ico); EXP_FILE << _T("\n"); EXP_FILE << _T("\n\n"); -- cgit v1.2.3