In the WM_NOTIFY message, the lParam parameter is a pointer to the NMHDR structure. This structure contains the particular notification message (among other things).
I modified CMyListView::OnNotifyReflect to test for the LVN_COLUMNCLICK notification as follows
In MFC, if using ON_NOTIFY_REFLECT(LVN_COLUMNCLICK, OnColumnClick) ==> WM_NOTIFY+WM_REFLECT_BASE , but I can't receive these messages from win32++.
My example
LRESULT CListView::OnNotifyReflect(WPARAM wParam, LPARAM lParam)
{
//WORD wpLo = HIWORD(lParam);
switch(lParam)
{
case LVN_COLUMNCLICK:
OnColumnClick(wParam,lParam);
TRACE("COLUMN CLICKED!!!\n");
break;
default: break;
}
}
But I couldn't extract LVN_COLUMNCLICK Message from OnNotifyReflect.
1) How do I get this?
2) about OnColumnClick( NMHDR pNMHDR, LRESULT pResult )
How do I configure OnColumnClick?
Can you give me an example for this?
-- Gordon Ahn.
Last edit: Gordon Ahn 2014-10-01
Hi Gordon,
In the WM_NOTIFY message, the lParam parameter is a pointer to the NMHDR structure. This structure contains the particular notification message (among other things).
I modified CMyListView::OnNotifyReflect to test for the LVN_COLUMNCLICK notification as follows
Best regards,
David