Recupere l'evenement LVN_COLUMNCLICK
bonjours,
j'ai cree une classe nommé CMListCtrl dérivé d'un CListCtrl.
et j'aimerais recuperer l'evenement LVN_COLUMNCLICK ( un click sur la barre des colonne ).
dans le .H j'ai :
Code:
1 2
|
afx_msg void OnLvnColumnclickListData(NMHDR *pNMHDR, LRESULT *pResult); |
et dans le .cpp :
Code:
1 2 3 4 5 6 7
|
void CMListCtrl::OnLvnColumnclickListData(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR);
// TODO: Add your control notification handler code here
*pResult = 0;
} |
mais je ne sais pas quoi mettre dans le :
Code:
1 2 3 4 5 6 7 8 9
|
BEGIN_MESSAGE_MAP(CMListCtrl, CListCtrl)
//{{AFX_MSG_MAP(CMListCtrl)
ON_WM_LBUTTONDOWN()
ON_WM_MOUSEMOVE()
ON_WM_KEYUP()
ON_WM_KEYDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP() |
merci d'avance pour l'aide