List View Insert Item
-
i have a ListView with Report style, an imageList is attached to it. I want to avoid image for a single item in the row. I tried to insert the item with out specifying LVIF_IMAGE flag, when i do so the item displays the first image in the image list.
Thanks & Regards
-
i have a ListView with Report style, an imageList is attached to it. I want to avoid image for a single item in the row. I tried to insert the item with out specifying LVIF_IMAGE flag, when i do so the item displays the first image in the image list.
Thanks & Regards
nitin3 wrote:
tried to insert the item with out specifying LVIF_IMAGE flag, when i do so the item displays the first image in the image list.
Instead, specify the LVIF_IMAGE flag and set the value of iImage as -1;
nave [OpenedFileFinder]
-
i have a ListView with Report style, an imageList is attached to it. I want to avoid image for a single item in the row. I tried to insert the item with out specifying LVIF_IMAGE flag, when i do so the item displays the first image in the image list.
Thanks & Regards
-
nitin3 wrote:
tried to insert the item with out specifying LVIF_IMAGE flag, when i do so the item displays the first image in the image list.
Instead, specify the LVIF_IMAGE flag and set the value of iImage as -1;
nave [OpenedFileFinder]
-
i allready tried by setting iImage as -1, it displays the same image at index 0. Is this a known issue or a problem in my code ?
Thanks & Regards
nitin3 wrote:
i allready tried by setting iImage as -1, it displays the same image at index 0.
I hope you have set the LVIF_IMAGE flag to also.
nitin3 wrote:
Is this a known issue or a problem in my code ?
Possibly. Can you show the code?
nave [OpenedFileFinder]
-
IMO, iIt would be probably shown as a blank space then, just before the text.
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
IMO, iIt would be probably shown as a blank space then, just before the text.
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
If we didn't set the image but set an image list, then also it will show a blank space.
nave [OpenedFileFinder]