Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem with ListView in LVS_ICON and LVS_SMALLICON mode

Problem with ListView in LVS_ICON and LVS_SMALLICON mode

Scheduled Pinned Locked Moved C / C++ / MFC
helptutoriallearning
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    s_k
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups