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. ListView

ListView

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 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.
  • K Offline
    K Offline
    karmendra_js
    wrote on last edited by
    #1

    i derived my class XView from CListView. I set the mode to LVS_REPORT so that always the view is a table with Five columns with headers. Now i add values to the rows it works fine. Now what i want is in one of the "client name" column there should be a facility to change the text on double click or so. Thanks :rose:

    M 1 Reply Last reply
    0
    • K karmendra_js

      i derived my class XView from CListView. I set the mode to LVS_REPORT so that always the view is a table with Five columns with headers. Now i add values to the rows it works fine. Now what i want is in one of the "client name" column there should be a facility to change the text on double click or so. Thanks :rose:

      M Offline
      M Offline
      mark novak
      wrote on last edited by
      #2

      catch the HDN_ITEMDBLCLICK notification from the header control embedded in the ListView control.

      B 1 Reply Last reply
      0
      • M mark novak

        catch the HDN_ITEMDBLCLICK notification from the header control embedded in the ListView control.

        B Offline
        B Offline
        Bartosz Bien
        wrote on last edited by
        #3

        Header should rather be used for column-based operations, for example sorting (I'd however suggest HDN_ITEMCLICK for that purpose). There are many examples on how to handle subitem edition in CListCtrl are here at the CP: http://www.codeproject.com/listctrl Regards, BB http://spin.bartoszbien.com

        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