|
// TreeViewEx.cpp : implementation file
//
#include "stdafx.h"
#include "AgileReader.h"
#include "TreeViewEx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTreeViewEx
IMPLEMENT_DYNCREATE(CTreeViewEx, CTreeView)
CTreeViewEx::CTreeViewEx()
{
}
CTreeViewEx::~CTreeViewEx()
{
}
BEGIN_MESSAGE_MAP(CTreeViewEx, CTreeView)
//{{AFX_MSG_MAP(CTreeViewEx)
ON_NOTIFY_REFLECT(NM_DBLCLK, OnDblclk)
ON_NOTIFY_REFLECT(TVN_SELCHANGED, OnSelchanged)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTreeViewEx drawing
void CTreeViewEx::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
// TODO: add draw code here
}
/////////////////////////////////////////////////////////////////////////////
// CTreeViewEx diagnostics
#ifdef _DEBUG
void CTreeViewEx::AssertValid() const
{
CTreeView::AssertValid();
}
void CTreeViewEx::Dump(CDumpContext& dc) const
{
CTreeView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CTreeViewEx message handlers
void CTreeViewEx::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult)
{
GetParentFrame()->SendMessage( WM_TREEDCLICK );
*pResult = 0;
}
void CTreeViewEx::OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
GetParentFrame()->SendMessage( WM_TREEITEMCHANGE );
*pResult = 0;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
LI is a architect of several database-centric tools and technologies. He has been programming since 1995. He is a Microsoft Certified Solution Developer (MCSD), MCSD.NET, SCJP, SCJD and OCDBA.
His programming experience includes C/C++, C#, MFC, ASP, VB and Perl. He has worked on Solaris, AIX, HPUX and various Windows, and found Windows is the easiest one to work with.
He has over 8 years of database experiences in Oracle, SQL Server, DB2 and other DBMS.
LI co-founded AgileInfoSoftware LLC (http://www.agileinfollc.com) in 2003. He is responsible for the overall vision and development strategy of the company.