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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. ListView and LVM_GETSUBITEMRECT problem, help please :(

ListView and LVM_GETSUBITEMRECT problem, help please :(

Scheduled Pinned Locked Moved C#
helpdatabasequestion
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.
  • I Offline
    I Offline
    iliyang
    wrote on last edited by
    #1

    I'm stuck. I'm writing a custom drawn ListView and I need to draw the subitems of each item. So the cleanest way to get the subitem bounds is to send an LVM_GETSUBITEMRECT message. But it works well only for indexes greater than 0. This is also noted in MSDN. The big trouble comes when the columns are reordered by the user. No matter what, LVM_GETSUBITEMRECT for index 0 always returns the bounds, as if it was the leftmost column. For all other indexes LVM_GETSUBITEMRECT always works fine in every case. How should I get the proper bounds for subitems at index 0?

    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