March 28, 2024, 04:51:23 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