• Advertisement

Archived

This topic is now archived and is closed to further replies.

Listview control...how to add items?!

This topic is 5910 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Did somebody know how i add items and subitems to an Listview (under windows)? I only can add the first item in the report view but not the subitems, i don''t find a way to do this. I where wery happy if somebody can give me an example code snipped or something else. Thanks alot... Mfg Impz0r

Share this post


Link to post
Share on other sites
Advertisement
You add an item with the LVM_INSERTITEM message (or ListView_InsertItem() macro) and add a subitem using the LVM_SETITEMTEXT message (or ListView_SetItemText macro).

MSDN wasn''t very clear on it when I tried to do it either =P

Invader X
Invader''s Realm

Share this post


Link to post
Share on other sites
hi,

Thank you Invader X, my fault was to use the wrong main item index, i don''t know why

Mfg Impz0r

Share this post


Link to post
Share on other sites

  • Advertisement