Thank you, Kurphyn, but it doesn't seem to work.
I create the list view like this:
And in the message map of the class of the dialog box I have this:
WS_VISIBLE | WS_CHILD | LVS_REPORT | LVS_EDITLABELS,
where I have defined:
ON_NOTIFY(LVN_COLUMNCLICK, IDC_MAIN_LIST_VIEW, OnColumnClicked)
And I have the function:
#define IDC_MAIN_LIST_VIEW 1006
But this function doesn't seem to be called.
void CKasaDBDlg::OnColumnClicked(NMHDR *pNotifyStruct, LRESULT *result )
i++;//here it is a breakpoint
P.S. This function is declared as follows:
afx_msg void OnColumnClicked(NMHDR *pNotifyStruct, LRESULT *result );