December 14, 2019, 11:40:52 am

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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