9#if !defined(OWL_IMAGELST_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
84 operator HIMAGELIST()
const;
92 TRect operator [](
int cel)
const;
124 bool Draw(
int index,
TDC&,
int x,
int y,
uint style = ILD_NORMAL,
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,
132 uint style = ILD_NORMAL,
int overlay = 0);
135 const TColor& fgClr,
uint style = ILD_NORMAL,
int overlay = 0)
136 {
return Draw(index, dc, p.x, p.y, s.cx, s.cy, bgClr, fgClr, style, overlay);}
138 bool SetOverlayImage(
int index,
int overlay);
142 bool SetDragCursorImage(
int drag,
int dxHotspot,
int dyHotspot);
143 bool BeginDrag(
int index,
int dxHotspot,
int dyHotspot);
144 static bool DragEnter(HWND hwndLock,
int x,
int y);
145 static bool DragMove(
int x,
int y);
146 static bool DragLeave(HWND hwndLock);
147 static void EndDrag();
148 static bool DragShowNolock(
bool show);
151 bool Copy(
TImageList& imgsrc,
int ifrom,
int ito,
uint flags=ILCF_MOVE);
157 bool SetImageCount(
uint newcount);
190 array.GetImageInfo(index, *
this);
227 return TPoint(index*ImageSize.cx, 0);
234 return TRect(
TPoint(index*ImageSize.cx, 0), ImageSize);
254inline TImageList::operator HIMAGELIST()
const {
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.
bool GetIconSize(int &cx, int &cy)
Returns the icon size.
TColor SetBkColor(const TColor &newColor)
Sets the current background color for this ImageList, returning the previous color.
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)
TColor GetBkColor() const
Gets the current background color for this ImageList.
bool Draw(int index, TDC &dc, const TPoint &p, uint style=ILD_NORMAL, int overlay=0)
int GetImageCount() const
Returns number of images currently in this ImageList.
TImageList(const TSize &imageSize, uint flags, int initCapacity, int growBy)
Constructs an empty ImageList of a given size.
TPoint GetImageOffset(int cel) const
Returns the offset of a given image in the ImageList's bitmap.
int Add(const TBitmap &image)
Adds new image(s) to the ImageList.
bool Remove(int index)
Removes an image (or all images if index is -1) from this ImageList.
HICON GetIcon(int index, uint flags) const
Creates and retrieves an icon from an image and mask in the ImageList.
bool GetImageInfo(int index, TImageInfo &celInfo) const
Gets general information about a given image.
bool Draw(int index, TDC &, int x, int y, uint style=ILD_NORMAL, int overlay=0)
Draws an image onto a target DC at a given coordinate and with a given style.
bool Replace(int index, const TBitmap &image)
Replaces an image in this ImageList.
int ReplaceIcon(int index, HICON hicon)
Replaces the image at index 'index' with the icon or cursor.
TPoint is a support class, derived from tagPOINT.
TPoint()
Constructs an uninitialized point.
TRect is a mathematical class derived from tagRect.
TRect()
Default constructor that does nothing.
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).