36 lines
728 B
C++
36 lines
728 B
C++
|
// my_list_ctrl.cpp : implementation file
|
||
|
//
|
||
|
|
||
|
#include "stdafx.h"
|
||
|
#include "data_mirror.h"
|
||
|
#include "my_list_ctrl.h"
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CMyListCtrl
|
||
|
|
||
|
CMyListCtrl::CMyListCtrl()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
CMyListCtrl::~CMyListCtrl()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
BEGIN_MESSAGE_MAP(CMyListCtrl, CListCtrl)
|
||
|
//{{AFX_MSG_MAP(CMyListCtrl)
|
||
|
ON_NOTIFY_REFLECT(HDN_ITEMCLICK, OnItemclick)
|
||
|
//}}AFX_MSG_MAP
|
||
|
END_MESSAGE_MAP()
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CMyListCtrl message handlers
|
||
|
|
||
|
void CMyListCtrl::OnItemclick(NMHDR* pNMHDR, LRESULT* pResult)
|
||
|
{
|
||
|
HD_NOTIFY *phdn = (HD_NOTIFY *) pNMHDR;
|
||
|
// TODO: Add your control notification handler code here
|
||
|
|
||
|
*pResult = 0;
|
||
|
}
|