DERIVED CLASS FOR IMAGE LISTS. More...
#include <Zclassut.h>
Public Member Functions | |
| void | AddIcon (LPCTSTR resource) |
| void | AddIcon (xpath file) |
| int | Count (void) |
| void | Draw (HDC hdc, int i, int x=0, int y=0, int style=ILD_BLEND25) |
| void | Load (void) |
| HICON | IconHandle (int i, int style=ILD_NORMAL) |
| HBITMAP | ImageHandle (int i) |
| void | Unload (void) |
| virtual void | Define (void) |
DERIVED CLASS FOR IMAGE LISTS.
% An image list is a collection of images of the same size, each of which can be referred to by its index. Image lists are used to efficiently manage large sets of icons or bitmaps. All images in an image list are contained in a single, wide bitmap in screen device format. An image list can also include a monochrome bitmap that contains masks used to draw images transparently (icon style).
| void zImageList::AddIcon | ( | xpath | file | ) |
Adds an image from an icon file.
| void zImageList::AddIcon | ( | LPCTSTR | resource | ) |
Adds an image from a module resource.
| int zImageList::Count | ( | void | ) | [inline] |
| virtual void zImageList::Define | ( | void | ) | [inline, virtual] |
Loads the default properties. A property is an attribute of a control, field, or database object that you set to define one of the object's characteristics or an aspect of its behavior. For example, the Visible property affects whether a control can be seen at run time. You can change an object's property settings at design-time.
| void zImageList::Draw | ( | HDC | hdc, | |
| int | i, | |||
| int | x = 0, |
|||
| int | y = 0, |
|||
| int | style = ILD_BLEND25 | |||
| ) | [inline] |
Draws an image list item in the specified device context.
| HICON zImageList::IconHandle | ( | int | i, | |
| int | style = ILD_NORMAL | |||
| ) | [inline] |
Creates an icon from an image and mask. It is the responsibility of the calling application to destroy the icon returned from this function using theDestroyIcon function.
| HBITMAP zImageList::ImageHandle | ( | int | i | ) | [inline] |
Retrieves the icon's image bitmap handle.
| void zImageList::Load | ( | void | ) | [inline] |
Creates the image list control.
| void zImageList::Unload | ( | void | ) | [inline] |
Destroys the image list control.
1.6.1