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