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. CListCtrl ItemSelected Notification...

CListCtrl ItemSelected Notification...

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 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.
  • M Offline
    M Offline
    Maverick
    wrote on last edited by
    #1

    How does CListCtrl notifies its parent or one of CWnd derived objects that wants to handle an ITEM SELECTION either by clicking on that item or by programatically selecting the item... What are the messages sent? Here's my program scenario, I have a SDI application.. Its a picture viewer with a thumbnail.. The thumbnail is implemented as a listbox with image icons, (icons being the thumbnail of the image file).. The listbox is placed on a DockingControlBar... the DockingControlBar is owned by CMainFrame... I want the View to be updated each time the user cliks on the image files in the listbox... How do i do these? I have read many articles and source codes related to this, but mostly it involved CListView.. I can't figure out how do I incorporate those source codes that i have read to the program that i am making..

    P 1 Reply Last reply
    0
    • M Maverick

      How does CListCtrl notifies its parent or one of CWnd derived objects that wants to handle an ITEM SELECTION either by clicking on that item or by programatically selecting the item... What are the messages sent? Here's my program scenario, I have a SDI application.. Its a picture viewer with a thumbnail.. The thumbnail is implemented as a listbox with image icons, (icons being the thumbnail of the image file).. The listbox is placed on a DockingControlBar... the DockingControlBar is owned by CMainFrame... I want the View to be updated each time the user cliks on the image files in the listbox... How do i do these? I have read many articles and source codes related to this, but mostly it involved CListView.. I can't figure out how do I incorporate those source codes that i have read to the program that i am making..

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      The CListCtrl is just a control wrapper around a CListView. So to handle item selection you have to handle the LVN_ITEMCHANGED message.


      "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!


      Honoured as one of The Most Helpful Members of 2004

      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