9#if !defined(OWL_IMAGELST_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
47 TRect GetImageRect()
const;
88 int GetImageCount()
const;
89 TSize GetImageSize()
const;
99 int Add(
const TIcon&);
102 bool Remove(
int index);
113 HICON GetIcon(
int index,
uint flags)
const;
114 bool GetIconSize(
int& cx,
int& cy);
119 TColor GetBkColor()
const;
128 {
return Draw(index, dc, p.x, p.y, style,
overlay);}
130 bool Draw(
int index,
TDC&,
int x,
int y,
int dx,
int dy,
138 bool SetOverlayImage(
int index,
int overlay);
145 static bool DragMove(
int x,
int y);
147 static void EndDrag();
148 static bool DragShowNolock(
bool show);
190 array.GetImageInfo(index, *
this);
227 return TPoint(index*ImageSize.cx, 0);
234 return TRect(
TPoint(index*ImageSize.cx, 0), ImageSize);
TBitmap is the GDI bitmap class derived from TGdiObject.
Class wrapper for management of color values.
TDC is the root class for GDI DC wrappers.
Pseudo-GDI object Device Independent Bitmap (DIB) class.
TIcon, derived from TGdiObject, represents the GDI object icon class.
TImageInfo is a wrapper class for a structure that describes an image within an image list.
HBITMAP GetMaskBM() const
Gets the image's mask.
HBITMAP GetImageBM() const
Gets the image bitmap.
TRect GetImageRect() const
Gets the area of the image.
TImageInfo()
Constructs an empty image info.
TImageList is a wrapper class for the ImageList common "control".
TSize GetImageSize() const
Returns the size each image.
TRect GetImageRect(int cel) const
Returns the bounding rect of a given image in the ImageList's bitmap.
bool RemoveAll()
Removes all images from the list.
TRect operator[](int cel) const
Returns the rectangle of the image at index 'index'.
bool Draw(int index, TDC dc, const TPoint &p, const TSize &s, const TColor &bgClr, const TColor &fgClr, uint style=ILD_NORMAL, int overlay=0)
bool Draw(int index, TDC &dc, const TPoint &p, uint style=ILD_NORMAL, int overlay=0)
TPoint GetImageOffset(int cel) const
Returns the offset of a given image in the ImageList's bitmap.
bool Remove(int index)
Removes an image (or all images if index is -1) from this ImageList.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
Definition of classes for CommonControl encapsulation.
Definition of abstract GDI object class and derived classes.
Object Windows Library (OWLNext Core)