diff options
author | George Hazan <ghazan@miranda.im> | 2019-04-12 12:44:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-04-12 12:44:14 +0300 |
commit | 8469e07dd899482905b638c248200db6a7c16191 (patch) | |
tree | a527a0e733716cd046bf877f592094c5026394f4 /include | |
parent | 402a9893b490b7865ab8bdc63791019a04993a23 (diff) |
standard icolib management code added to CMPluginBase
Diffstat (limited to 'include')
-rw-r--r-- | include/newpluginapi.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<void> 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; }
|