Hello,
I have a dialog containing a CListCtrl, je retrieve the performed actions (click, right click,etc) on this list thanks to ON_NOTIFY(NM_CLICK, IDC_LIST2, <RoutineName>) in //{{AFX_MSG_MAP(CTestList).
It works well in this case.
Now, my dialog is empty and I build dynamicaly the CListCtrl with:
m_Liste = new CListCtrl;
VERIFY (m_Liste->Create (WS_VISIBLE | WS_CHILD | LVS_REPORT | LVS_EDITLABELS, CRect (10, 10, 300, 300), this, IDI_LIST));
If I have a ON_NOTIFY(NM_CLICK, IDI_LIST, <RoutineName>) I got 2 compil errors on line ON_NOTIFY :
- error C2065: '<RoutineName>' : undeclared identifier
- error C2440: 'type cast' : cannot convert from 'int *' to 'void (__thiscall CCmdTarget::*)(struct tagNMHDR *,long *)'
What do I have to do to retrieve the performed actions and execute the right routine depending on msg type??

Thanks in advance
DD