The information in this article applies to:
SYMPTOMSCListCtrl member functions GetItem and SetItem lack an Indent parameter. CAUSEThe LVITEM structure was modified with version 4.70 of ComCtrl32.dll to include an indent parameter. This parameter specifies how many image widths to indent an item. However, there is no place to specify this parameter in the form of the CListCtrl member function SetItem that takes a list view item's attributes. RESOLUTIONYou can set the value of the iIndent member of the LVITEM structure by using the form of the CListCtrl member function SetItem that accepts a pointer to a LV_ITEM structure. For example:
Likewise, to obtain the indentation of an item in a CListCtrl, use the form
of the CListCtrl member function GetItem that accepts a pointer to a
LV_ITEM structure:
Note that because iIndent specifies the number of image widths to indent
the item, you must associate an image list of small images with the items.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONCListCtrl::SetItem has two forms: one that takes a pointer to an LV_ITEM structure and one that takes individual parameters. The second form does not have a parameter representing the number of image widths to indent an item. Additional query words: LVITEM LV_ITEM LVM_SETITEM LVM_GETITEM CListView
Keywords : kbcode kbnokeyword kbVC600bug kbMFC600 |
Last Reviewed: July 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |