11#if defined(__BORLANDC__)
24 memset(
this,0,
sizeof(IMAGELISTDRAWPARAMS));
25 cbSize =
sizeof(IMAGELISTDRAWPARAMS);
100 ImageSize =
TSize(0);
130 ImageSize =
TSize(0);
145 WARNX(
OwlCommCtrl, !Handle, 0,
_T(
"TImageList::TImageList: ImageList_Duplicate failed"));
177 if (
this == &
src)
return *
this;
180 if (!
d)
throw TXOwl{
_T(
"TImageList::operator = failed")};
205 if (!Bitmap || (
HBITMAP)*Bitmap !=
ii.GetImageBM()) {
376 if (!
r)
throw TXOwl{
_T(
"GetImageInfo failed")};
#define WARNX(group, condition, level, message)
#define PRECONDITION(condition)
#define DIAG_DECLARE_GROUP(group)
TBitmap is the GDI bitmap class derived from TGdiObject.
Class wrapper for management of color values.
static const TColor None
not-a-color
static const TColor Sys3dFace
The symbolic system color value for the face color of 3-dimensional display elements.
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.
TImageList is a wrapper class for the ImageList common "control".
bool BeginDrag(int index, int dxHotspot, int dyHotspot)
BeginDrag sets this imagelist to be the drag imagelist.
static bool DragMove(int x, int y)
DragMove is typically called when receiving a WM_MOUSEMOVE message.
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.
bool SetDragCursorImage(int drag, int dxHotspot, int dyHotspot)
Combines the current drag image with another image in the list.
static bool DragEnter(HWND hwndLock, int x, int y)
Typically, this function is called in response to a WM_LBUTTONDOWN message.
TImageList & operator=(const TImageList &)
Replaces the image list by a duplicate of the given image list.
bool SetImageCount(uint newcount)
static bool DragShowNolock(bool show)
Locks or unlocks the window from updates.
bool DrawIndirect(const TImageListDrawParam &imldp)
static bool DragLeave(HWND hwndLock)
DragLeave is typically called when receiving a WM_LBUTTONUP message.
TColor GetBkColor() const
Gets the current background color for this ImageList.
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.
int Add(const TBitmap &image)
Adds new image(s) to the ImageList.
void CheckValid()
Throws an exception if this image list handle is invalid.
bool Copy(TImageList &imgsrc, int ifrom, int ito, uint flags=ILCF_MOVE)
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.
~TImageList()
Destructs the ImageList and cleans up the image list handle.
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.
bool SetOverlayImage(int index, int overlay)
Selects an image for use as an overlay. Up to four can be selected.
static void EndDrag()
EndDrag removes the current drag imagelist from the system.
int ReplaceIcon(int index, HICON hicon)
Replaces the image at index 'index' with the icon or cursor.
TPalette is the GDI Palette class derived from TGdiObject.
TPoint is a support class, derived from tagPOINT.
Derived from TWindowDC, TScreenDC is a DC class that provides direct access to the screen bitmap.
The tagSIZE struct is defined as.
static void Raise()
Constructs a TXCommCtrl exception from scratch, and throws it.
TXOwl is root class of the ObjectWindows exception hierarchy.
Definition of class TImageList, an ImageList Common Control wrapper.
Object Windows Library (OWLNext Core)