Re: How do you insert columns into a list view

new topic     » goto parent     » topic index » view thread      » older message » newer message

From: Tony Steward


>Hi all,
>How do I insert a column into list view.
>I found the following command but don't know how to use it

>insertListViewColumn (id,index,mask,fmt,cx,text,iSubItem )

>id = name of list view
>index = ?
>mask = ?
>fmt = ?
>cx = ?
>text = Maybe column title?
>iSubitem = ?


index = index of the column (NOTE: zero-indexed)

mask = don't worry about this.  It's a flag for telling windows what parts
of the LV_COLUMN structure are valid.  insertListViewColumn doesn't actually
use this.  It was included for possible further expansion.

fmt = alignment of the column (LVCFMT_LEFT, LVCFMT_RIGHT, or LVCFMT_CENTER)

cx = initial width of the column (pixels)

text = column title

iSubItem = Index of subitem associated with column.  Win32Lib just uses zero
with this, and it seems to work fine.

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu