IonicWind Software

Aurora Compiler => Coding Help - Aurora 101 => Topic started by: Haim on December 28, 2007, 10:40:05 PM

Title: CListView Question
Post by: Haim on December 28, 2007, 10:40:05 PM
Hi,
How do I find the actual number of columns that were dinamically created in a listview?

Haim

Title: Re: CListView Question
Post by: Haim on December 29, 2007, 12:52:12 AM

Hi,

I found the solution:

first of all get the handle to the header of the listview

UINT HDR=SendMessageA([the handle of the ListView],LVM_GETHEADER,0,0);
than get the header itemcount

INT COUNT=SendMessage(HDR,HDM_GETITEMCOUNT,0,0);

And that's it!

Haim