Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

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

 

Inserts a new column in a list-view control.

 

Syntax

 

n = ListView_InsertColumn(hWnd, ctrlID, ColumnIndex, cSize, sText [, lMask [, lFormat]])

 

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 ...

ColumnIndex

Number

No

Column index. Starts from 1

cSize

Number

No

Width of the column, in pixels.

sText

Number

No

String that contains the column header text

lMask

Number

Yes

Variable specifying which members contain valid information. One or more of the following equates:

%LVCF_FMT

%LVCF_WIDTH

%LVCF_TEXT

%LVCF_SUBITEM

%LVCF_IMAGE

%LVCF_ORDER

%LVCF_MINWIDTH

%LVCF_DEFAULTWIDTH

%LVCF_IDEALWIDTH

If this member is zero or omitted, the following default value will be used:

%LVCF_FMT OR %LVCF_TEXT OR %LVCF_WIDTH

lFormat

Number

Yes

Alignment of the column header and the subitem text in the column. The alignment of the leftmost column is always left-justified; it cannot be changed. This member can be one of the following values:

%LVCFMT_LEFT

%LVCFMT_RIGHT

%LVCFMT_CENTER

%LVCFMT_JUSTIFYMASK

%LVCFMT_IMAGE

%LVCFMT_BITMAP_ON_RIGHT

%LVCFMT_COL_HAS_IMAGES

%LVCFMT_FIXED_WIDTH

%LVCFMT_NO_DPI_SCALE

%LVCFMT_FIXED_RATIO

%LVCFMT_SPLITBUTTON

If this member is zero or omitted, the following default value will be used:

%LVCFMT_LEFT

 

Remarks

 

Restrictions

 

See also

 

Examples

 

 

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software