6 #ifndef _INC_cWndImageList_H
7 #define _INC_cWndImageList_H
14 #if ! defined(_MFC_VER) && defined(_WIN32) && ! defined(_WINDLL) && (_MSC_VER>=1300)
24 ::ImageList_Destroy(h);
30 class CWndImageEntry :
public cRefBase
39 CWndImageEntry(
int iImageIndex,
cString sName)
40 : m_iImageIndex(iImageIndex)
50 class GRAYLIB_LINK cWndImageList :
public CObject,
public cHandlePtr<HIMAGELIST>
57 cThreadLockArrayName<CWndImageEntry> m_aIcons;
62 bool Create(
int cx,
int cy, UINT nFlags,
int nInitial,
int nGrow);
68 int FindImageIndex(
const GChar_t* pszName)
const;
69 void AddImageIndex(
cString sName,
int iImageIndex);
70 int AddImage(
cString sName, HICON hIcon);
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
void CloseHandle()
Definition: cHandlePtr.h:79
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14
char GChar_t
My version of TCHAR, _TCHAR.
Definition: StrConst.h:26
cStringT< GChar_t > cString
Definition: cString.h:636