AlionSolutions
June 11th, 2003, 07:06 AM
Hi,
again I have questions about comctrl, especially the ListView-Control:
I'm finnished with the TreeViews, so I have to learn some more stuff about ListViews. Ok, so I built a little C++-Wrapperclass
around it. The TreeViews were relatively easy stuff, but those ListViews break my neck.
1. I tried EVERYTHING to switch between the ViewStyles of the ListView programatically, and nothing worked. Has anybody an idea what I can try to get it working ?
2. MORE IMPORTANT !!! Ok, after messing around with ViewStyles, I decided to use the ViewStyle that suits my Application most and keep it fixed, and this is the report-style.
Ok, after learning about columns, and the fact, that no item may be added before having at least one column, my report-style-ListView looks and works fine... except for one thing:
There are no icons at the left of the report-items, like in windows-explorer and other apps in explorer-style. I added image-lists (the big and the small ones) to the ListView and set the LVIF_IMAGE-maskflag when inserting items... no icons :-(
My question is: What to do, to get icons displayed at the left side of my ListView-items in report-viewstyle ?
I read the tutorial at codeguru about using ListViews, but it didn't help me at my problems.
Thanx in advance for your help
Juergen
again I have questions about comctrl, especially the ListView-Control:
I'm finnished with the TreeViews, so I have to learn some more stuff about ListViews. Ok, so I built a little C++-Wrapperclass
around it. The TreeViews were relatively easy stuff, but those ListViews break my neck.
1. I tried EVERYTHING to switch between the ViewStyles of the ListView programatically, and nothing worked. Has anybody an idea what I can try to get it working ?
2. MORE IMPORTANT !!! Ok, after messing around with ViewStyles, I decided to use the ViewStyle that suits my Application most and keep it fixed, and this is the report-style.
Ok, after learning about columns, and the fact, that no item may be added before having at least one column, my report-style-ListView looks and works fine... except for one thing:
There are no icons at the left of the report-items, like in windows-explorer and other apps in explorer-style. I added image-lists (the big and the small ones) to the ListView and set the LVIF_IMAGE-maskflag when inserting items... no icons :-(
My question is: What to do, to get icons displayed at the left side of my ListView-items in report-viewstyle ?
I read the tutorial at codeguru about using ListViews, but it didn't help me at my problems.
Thanx in advance for your help
Juergen