Problem with ListView in LVS_ICON and LVS_SMALLICON mode
-
Hi, I have ListView that shows files on local drives and want to let user select view mode. So application starts defaultly with ListView set to LVS_REPORT and when user selects another style of view, the proper style is set using following code: ModifyStyle(LVS_TYPEMASK,(LVS_ICON & LVS_TYPEMASK)); Or with LVS_SMALLICON instead of LVS_ICON when user wants to show large icons, of course. In report style everything is ok. But when I switch to LVS_ICON mode, it looks like on this picture (I took a screenshot of my ListView): ListView in LVS_ICON mode And, when I switch to LVS_SMALLICON mode, it looks like this: ListView in LVS_SMALLICON mode As you can see, first row is missing (but when I for example double click on that empty space, my program handles it correctly as the items would be there. I must also mention that the ListView I use has Custom Draw feature (so I handle OnCustomDraw()) and it is Virtual ListView (so I handle OnGetDispInfo()). I'm really out of my knowledge... Thank you for any suggestion!