May 23, 2019, 07:55:36 am

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


CListView Question

Started by Haim, December 28, 2007, 10:40:05 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Haim

Hi,
How do I find the actual number of columns that were dinamically created in a listview?

Haim


Haim


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