From 8469e07dd899482905b638c248200db6a7c16191 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 12 Apr 2019 12:44:14 +0300 Subject: standard icolib management code added to CMPluginBase --- include/newpluginapi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/newpluginapi.h b/include/newpluginapi.h index 32ed951999..f479f5f9f4 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -160,6 +160,7 @@ protected: const char *m_szModuleName; const PLUGININFOEX &m_pInfo; HANDLE m_hLogger = nullptr; + LIST m_arIcons; CMPluginBase(const char *moduleName, const PLUGININFOEX &pInfo); ~CMPluginBase(); @@ -172,6 +173,11 @@ public: void debugLogA(LPCSTR szFormat, ...); void debugLogW(LPCWSTR wszFormat, ...); + __forceinline void addIcolib(HANDLE hIcolib) { m_arIcons.insert(hIcolib); } + HICON getIcon(int iconId); + HANDLE getIconHandle(int iconId); + void releaseIcon(int iconId); + __forceinline const PLUGININFOEX& getInfo() const { return m_pInfo; } __forceinline const char* getModule() const { return m_szModuleName; } -- cgit v1.2.3