Thank you, Kurphyn, but it doesn't seem to work.
I create the list view like this:
Code:
hListView=::CreateWindowEx(NULL,WC_LISTVIEW,"#1006",
WS_VISIBLE | WS_CHILD | LVS_REPORT | LVS_EDITLABELS,
0,0,500,250,this->m_hWnd,NULL,theApp.m_hInstance,NULL);
And in the message map of the class of the dialog box I have this:
Code:
ON_NOTIFY(LVN_COLUMNCLICK, IDC_MAIN_LIST_VIEW, OnColumnClicked)
where I have defined:
Code:
#define IDC_MAIN_LIST_VIEW 1006
And I have the function:
Code:
void CKasaDBDlg::OnColumnClicked(NMHDR *pNotifyStruct, LRESULT *result )
{
int i=1;
i++;//here it is a breakpoint
}
But this function doesn't seem to be called.
P.S. This function is declared as follows:
Code:
afx_msg void OnColumnClicked(NMHDR *pNotifyStruct, LRESULT *result );