This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Sets text and/or format of list-view item or subitem.
Syntax
n = ListView_SetItem(hWnd, ctrlID, RowIndex, ColumnIndex, sText [, lMask])
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
hWnd |
Number |
No |
Handle of the dialog containing the list-view control |
ctrlID |
Number |
No |
Control identifier assigned to the control during CONTROL ADD ... |
RowIndex |
Number |
No |
Row index. Starts from 1 |
ColumnIndex |
Number |
No |
Column index. Starts from 1 |
sText |
String |
No |
A string containing the item text |
lMask |
Number |
Yes |
Set of flags that specify which members of this structure contain data to be set or which members are being requested. This member can have one or more of the following flags set: %LVIF_COLFMT %LVIF_COLUMNS %LVIF_DI_SETITEM %LVIF_GROUPID %LVIF_IMAGE %LVIF_INDENT %LVIF_NORECOMPUTE %LVIF_PARAM %LVIF_STATE %LVIF_TEXT
If this member is zero or omitted, the following default value will be used: %LVIF_TEXT |
Remarks
Restrictions
See also
Examples