Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Custom drawn vertical tree control

, 14 Oct 2005
A CTreeCtrl derived class which is both: a normal CTreeCtrl or a fully custom drawn vertical tree control.
// VerticalTreeDlg.h : Header-Datei
//

#if !defined(AFX_VERTICALTREEDLG_H__2AD89464_660C_4E88_90F5_AC528E734BFD__INCLUDED_)
#define AFX_VERTICALTREEDLG_H__2AD89464_660C_4E88_90F5_AC528E734BFD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


#include "CustomVerticalTree.h"

/////////////////////////////////////////////////////////////////////////////
// CVerticalTreeDlg Dialogfeld

class CVerticalTreeDlg : public CDialog
{
// Konstruktion
public:
	CVerticalTreeDlg(CWnd* pParent = NULL);	// Standard-Konstruktor

// Dialogfelddaten
	//{{AFX_DATA(CVerticalTreeDlg)
	enum { IDD = IDD_VERTICALTREE_DIALOG };
	CVerticalTree	m_TestTree;
	//}}AFX_DATA

	// Vom Klassenassistenten generierte �berladungen virtueller Funktionen
	//{{AFX_VIRTUAL(CVerticalTreeDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV-Unterst�tzung
	//}}AFX_VIRTUAL

// Implementierung
protected:
	void FillTree(TV_INSERTSTRUCT &treeitem, int depth = 2);
	HICON m_hIcon;

	// Generierte Message-Map-Funktionen
	//{{AFX_MSG(CVerticalTreeDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButCustom();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ f�gt unmittelbar vor der vorhergehenden Zeile zus�tzliche Deklarationen ein.

#endif // !defined(AFX_VERTICALTREEDLG_H__2AD89464_660C_4E88_90F5_AC528E734BFD__INCLUDED_)

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.

License

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

Share

About the Author

Doga Arinir
Chief Technology Officer W3L
Germany Germany
-Since 1th August 2007: Chief Technology Officer of W3L
-2002/08/01-2007/07/31: PhD student
-1997/10/15-2002/07/31: Studied Electrical Engineering and Computer Science

| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 14 Oct 2005
Article Copyright 2005 by Doga Arinir
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid