TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Attributes | List of all members
ImageList Class Reference

Detailed Description

Image list wrapper.

Public Member Functions

 ImageList ()
 
virtual ~ImageList ()
 
bool Create (UINT iFlags=ILC_COLOR, UINT iCX=16, UINT iCY=16, UINT iMaxItems=32)
 
bool CreateFromBitmap (UINT iBitmapID, UINT iCX)
 Creates an image list from a bitmap. More...
 
bool AddImage (DWORD dwResource)
 
HIMAGELIST GetHandle ()
 
int GetImageCount () const
 
BOOL SetImageCount (UINT uNewCount)
 
int Add (HBITMAP hbmImage, HBITMAP hbmMask)
 
int ReplaceIcon (int i, HICON hicon)
 
COLORREF SetBkColor (COLORREF clrBk)
 
COLORREF GetBkColor () const
 
BOOL SetOverlayImage (int iImage, int iOverlay)
 
BOOL Draw (int i, HDC hdcDst, int x, int y, UINT fStyle) const
 
BOOL Replace (int i, HBITMAP hbmImage, HBITMAP hbmMask)
 
int AddMasked (HBITMAP hbmImage, COLORREF crMask)
 
BOOL DrawEx (int i, HDC hdcDst, int x, int y, int dx, int dy, COLORREF rgbBk, COLORREF rgbFg, UINT fStyle) const
 
BOOL DrawIndirect (IMAGELISTDRAWPARAMS *pimldp) const
 
BOOL Remove (int i)
 
HICON GetIcon (int i, UINT flags) const
 
BOOL Copy (int iDst, HIMAGELIST himlSrc, int iSrc, UINT uFlags)
 
BOOL BeginDrag (int iTrack, int dxHotspot, int dyHotspot)
 
void EndDrag ()
 
BOOL DragEnter (HWND hwndLock, int x, int y)
 
BOOL DragLeave (HWND hwndLock)
 
BOOL DragMove (int x, int y)
 
BOOL SetDragCursorImage (int iDrag, int dxHotspot, int dyHotspot)
 
BOOL DragShowNolock (BOOL fShow)
 
HIMAGELIST GetDragImage (POINT FAR *ppt, POINT FAR *pptHotspot)
 
BOOL RemoveAll ()
 
HICON ExtractIcon (int i)
 
BOOL GetIconSize (int FAR *cx, int FAR *cy)
 
BOOL SetIconSize (int cx, int cy)
 
BOOL GetImageInfo (int i, IMAGEINFO FAR *pImageInfo)
 
HIMAGELIST Merge (int i1, HIMAGELIST himl2, int i2, int dx, int dy)
 
HIMAGELIST Duplicate ()
 

Protected Attributes

HIMAGELIST m_hImgLst
 

Constructor & Destructor Documentation

ImageList ( )
virtual ~ImageList ( )
virtual

Member Function Documentation

bool Create ( UINT  iFlags = ILC_COLOR,
UINT  iCX = 16,
UINT  iCY = 16,
UINT  iMaxItems = 32 
)
bool CreateFromBitmap ( UINT  iBitmapID,
UINT  iCX 
)

Creates an image list from a bitmap.

Parameters
iBitmapIDResource ID of the bitmap
iCXWidth of the individual images
Returns
true in case of success
bool AddImage ( DWORD  dwResource)
HIMAGELIST GetHandle ( )
int GetImageCount ( ) const
BOOL SetImageCount ( UINT  uNewCount)
int Add ( HBITMAP  hbmImage,
HBITMAP  hbmMask 
)
int ReplaceIcon ( int  i,
HICON  hicon 
)
COLORREF SetBkColor ( COLORREF  clrBk)
COLORREF GetBkColor ( ) const
BOOL SetOverlayImage ( int  iImage,
int  iOverlay 
)
BOOL Draw ( int  i,
HDC  hdcDst,
int  x,
int  y,
UINT  fStyle 
) const
BOOL Replace ( int  i,
HBITMAP  hbmImage,
HBITMAP  hbmMask 
)
int AddMasked ( HBITMAP  hbmImage,
COLORREF  crMask 
)
BOOL DrawEx ( int  i,
HDC  hdcDst,
int  x,
int  y,
int  dx,
int  dy,
COLORREF  rgbBk,
COLORREF  rgbFg,
UINT  fStyle 
) const
BOOL DrawIndirect ( IMAGELISTDRAWPARAMS *  pimldp) const
BOOL Remove ( int  i)
HICON GetIcon ( int  i,
UINT  flags 
) const
BOOL Copy ( int  iDst,
HIMAGELIST  himlSrc,
int  iSrc,
UINT  uFlags 
)
BOOL BeginDrag ( int  iTrack,
int  dxHotspot,
int  dyHotspot 
)
void EndDrag ( )
BOOL DragEnter ( HWND  hwndLock,
int  x,
int  y 
)
BOOL DragLeave ( HWND  hwndLock)
BOOL DragMove ( int  x,
int  y 
)
BOOL SetDragCursorImage ( int  iDrag,
int  dxHotspot,
int  dyHotspot 
)
BOOL DragShowNolock ( BOOL  fShow)
HIMAGELIST GetDragImage ( POINT FAR *  ppt,
POINT FAR *  pptHotspot 
)
BOOL RemoveAll ( )
HICON ExtractIcon ( int  i)
BOOL GetIconSize ( int FAR *  cx,
int FAR *  cy 
)
BOOL SetIconSize ( int  cx,
int  cy 
)
BOOL GetImageInfo ( int  i,
IMAGEINFO FAR *  pImageInfo 
)
HIMAGELIST Merge ( int  i1,
HIMAGELIST  himl2,
int  i2,
int  dx,
int  dy 
)
HIMAGELIST Duplicate ( )

Member Data Documentation

HIMAGELIST m_hImgLst
protected