ListView
-
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:
-
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:
catch the HDN_ITEMDBLCLICK notification from the header control embedded in the ListView control.
-
catch the HDN_ITEMDBLCLICK notification from the header control embedded in the ListView control.
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