|
|
ImageListBox control
The control derives directly from SmartphoneThere's also a version which derives from theCListViewCtrl instead - allowing the control
to work on the MS Smartphone platform
(which doesn't support the ownerdrawn listbox).
How to use itTo use it, place aLISTBOX control
(or LISTVIEW control if on a Smartphone platform)
on your dialog.
This control must have the Owner draw property set to Fixed
in the resource editor.
Add a member variable to your dialog implementation file...
In the OnInitDialog() event handler, add the following line:
Also add this reflection macro to your main message map:
Set the ImageList handles. It is possible to have images for
both the selected and normal state. The selected images are optional.
You should also set the item height. The item height is fixed for all items,
so choose it wisely.
Use the GetPreferences() and SetPreferences() methods
to set colors and indent for various areas of the items.
To add an item...
This is pretty much like a ListView control.
Most of the standard Source Code DependenciesMicrosoft Visual C++ 6.0Microsoft WTL 7.5 Library Download Files
Written by Bjarke Viksoe. Article submitted 11/7/2001. To the top
|
|||