I created a list view(i think) in win32. but i can't add colums and items to it
Anyone that can help me?
Edit: I have checked MSDN but still can't get it to work.
I created a list view(i think) in win32. but i can't add colums and items to it
Anyone that can help me?
Edit: I have checked MSDN but still can't get it to work.
Last edited by Hani; 04-23-2008 at 10:54 AM.
It might help to show some of your code.
I don't see how, he's saying he has no idea how to go about doing this, not that his existing code isn't working.
He did say he created a list view (he thinks). It would be useful to see how he attempted that. If the creation is correct, adding columns wouldn't be hard.
If you are using the Win32 Api, have a look at the LVCOLUMN structure, and the function ListView_InsertColumn() to insert columns. Also, for inserting items have a look at this thread:
Subitems in ListView and
long time no C; //seige
You miss 100% of the people you don't C;
Code:if (language != LANG_C && language != LANG_CPP) drown(language);
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
The list view i created was just a normal createwindow() with list view class and LVS_REPORT.
When creating colums and items i needs to create structs and i dont know what the struct variables is or what i should write. I want to start at the beginning... so let say i dont know how to create a list view....
This might help you.
http://www.codeproject.com/KB/combobox/listview.aspx