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 / C++ / MFC
  4. another CListCtrl question

another CListCtrl question

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

    I have a dialog box, and within that dialog box I have a CListCtrl, report view, that is set up with 2 columns. I found code online (with the help of some people on this board) at http://www.codeguru.com/listview/edit_subitems.shtml[^] to help me with doing in-place editing of the items in the second column of this list control. For some reason, I can't get it to work in my project. I have a class for my dialog box, and a separate class for the list control. This code from the above link creates a handler for the WM_LBUTTONDOWN message. When going through the class wizard, I don't have the option of using this event, I have tried creating a handler for the NM_CLICK message, but it doesn't seem to do anything either. right now, I'm handling the messages in my CListCtrl class, not my dialog box class. Can anyone tell me why I don't have the WM_LBUTTONDOWN message available, and what I can do to get around that in order to make this code work? Thanks.

    T 1 Reply Last reply
    0
    • B b_girl

      I have a dialog box, and within that dialog box I have a CListCtrl, report view, that is set up with 2 columns. I found code online (with the help of some people on this board) at http://www.codeguru.com/listview/edit_subitems.shtml[^] to help me with doing in-place editing of the items in the second column of this list control. For some reason, I can't get it to work in my project. I have a class for my dialog box, and a separate class for the list control. This code from the above link creates a handler for the WM_LBUTTONDOWN message. When going through the class wizard, I don't have the option of using this event, I have tried creating a handler for the NM_CLICK message, but it doesn't seem to do anything either. right now, I'm handling the messages in my CListCtrl class, not my dialog box class. Can anyone tell me why I don't have the WM_LBUTTONDOWN message available, and what I can do to get around that in order to make this code work? Thanks.

      T Offline
      T Offline
      Terry ONolley
      wrote on last edited by
      #2

      Have you tried manually editing your message maps?



      B 1 Reply Last reply
      0
      • T Terry ONolley

        Have you tried manually editing your message maps?



        B Offline
        B Offline
        b_girl
        wrote on last edited by
        #3

        I have, but should the message map be in my dialog box class, or should it be in my list control class? right now, it's in my list control class.

        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