IonicWind Software

IWBasic => GUI Central => Topic started by: Bruce Peaslee on February 05, 2009, 12:46:59 PM

Title: LVSCW_AUTOSIZE_USEHEADER and Listview
Post by: Bruce Peaslee on February 05, 2009, 12:46:59 PM
I have spent an inordinate amount of time fussing with the size of the last column of listviews. I want it to be the exact size left. Too small and there is space; too big and there is a scroll bar.

If you use LVSCW_AUTOSIZE_USEHEADER (-2), the system sizes it for you. (Courtesy of MSDN.)
Title: Re: LVSCW_AUTOSIZE_USEHEADER and Listview
Post by: Ionic Wind Support Team on February 05, 2009, 12:49:04 PM
Nice  8)
Title: Re: LVSCW_AUTOSIZE_USEHEADER and Listview
Post by: Haim on February 06, 2009, 03:08:56 AM
Hi,
I am loosing the last column when I specify the width with ,0,LVSCW_AUTOSIZE_USEHEADER
can you show an example please?

Haim
Title: Re: LVSCW_AUTOSIZE_USEHEADER and Listview
Post by: Haim on February 06, 2009, 03:41:02 AM
Sorry, my mistake  :-[

I found that it works in setcolumnwidth but not in the insertcolumn method of the listview (I am using AURORA)
Thanks for the find.

Haim