Event handler for double click in CListCtrl
-
Hello All, I am using a CListCtrl created in a dialog window. This CListCtrl displays thumbnail images. I want a notification when a user double clicks an image in list. The OnLButtonDblClk function only works when user double clicks in the dialog window. It does not catch the event when a user double clicks in the list control window, probably because the dialog treats list control as a separate window. Can anyone please let me know how do I write a event handler to to catch the event when an image in CListCtrl is double clicked. Thanks in advance for your reply. Abhijit Deshmukh
-
Hello All, I am using a CListCtrl created in a dialog window. This CListCtrl displays thumbnail images. I want a notification when a user double clicks an image in list. The OnLButtonDblClk function only works when user double clicks in the dialog window. It does not catch the event when a user double clicks in the list control window, probably because the dialog treats list control as a separate window. Can anyone please let me know how do I write a event handler to to catch the event when an image in CListCtrl is double clicked. Thanks in advance for your reply. Abhijit Deshmukh
Override your own list control like CMyListCtrl from CListCtrl. Enjoy:rose:
Anderson Sheen Reduce a time to develop your environment. It's a free! http://www.exteide.com
-
Hello All, I am using a CListCtrl created in a dialog window. This CListCtrl displays thumbnail images. I want a notification when a user double clicks an image in list. The OnLButtonDblClk function only works when user double clicks in the dialog window. It does not catch the event when a user double clicks in the list control window, probably because the dialog treats list control as a separate window. Can anyone please let me know how do I write a event handler to to catch the event when an image in CListCtrl is double clicked. Thanks in advance for your reply. Abhijit Deshmukh
The listview control sends a
NM_DBLCLK
notification to its parent window when the user double-clicks in it. You can listen for this.---- Scripts i've known... CPhog 0.9.9 - make CP better. Forum Bookmark 0.2.1 - bookmark forum posts on Pensieve Print forum 0.1.1 - printer-friendly forums