ListView::SetItemImageOwnerDrawFlag
Sets the image type to ListView::OwnerDraw of a list view item.
void SetItemImageOwnerDrawFlag (
short listItem,
bool flag = true
);
Parameters
- listItem
-
1-based index of the list view item to be modified, TopItem or
BottomItem of Item type specifies
the first or last item of the list view control. Use AllItems
of Item type to modify all items.
- flag
-
Value |
Meaning |
false |
The list view item is drawn by DG. |
true |
The list view item must be drawn by the application. |
Description
If the image type of a list item is ListView::OwnerDraw, then the
ListViewObserver::ListViewUpdateEvent
event is sent to the application every time the image is to be redrawn.
If an image is assigned to the list view item, this flag is cleared.