1. How do you insert columns into a list view

------=_NextPart_000_0007_01C07D56.EA56F240
        charset="iso-8859-1"

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 =3D name of list view
index =3D ?
mask =3D ?
fmt =3D ?
cx =3D ?
text =3D Maybe column title?
iSubitem =3D ?

Please explain

Thanks tony
Come Visit Me At www.locksdownunder.com


------=_NextPart_000_0007_01C07D56.EA56F240
        charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>How do I insert a column into list=20
view.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I found the following command but don't =
know how to=20
use it</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>insertListViewColumn=20
(id,index,mask,fmt,cx,text,iSubItem )</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>id =3D name of list view</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>index =3D ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>mask =3D ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>fmt =3D ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>cx =3D ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>text =3D Maybe column =
title?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>iSubitem =3D ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Please explain</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks tony</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Come Visit Me At <A=20

------=_NextPart_000_0007_01C07D56.EA56F240--

new topic     » topic index » view message » categorize

2. Re: How do you insert columns into a list view

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 message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu