Click here to Skip to main content
15,886,518 members
Articles / Desktop Programming / MFC

Store and show Tree struct in a Combobox

Rate me:
Please Sign up or sign in to vote.
4.52/5 (15 votes)
31 Jul 2002GPL3 134.8K   4.1K   49  
Store and show Tree struct in Combobox
// testcbxDlg.h : header file
//

#if !defined(AFX_TESTCBXDLG_H__E9CD2159_AE6D_4E1C_A132_AA77A0AA4F65__INCLUDED_)
#define AFX_TESTCBXDLG_H__E9CD2159_AE6D_4E1C_A132_AA77A0AA4F65__INCLUDED_

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

#include "WzComboBox.h"

/////////////////////////////////////////////////////////////////////////////
// CTestcbxDlg dialog

class CTestcbxDlg : public CDialog
{
// Construction
public:
	CTestcbxDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTestcbxDlg)
	enum { IDD = IDD_TESTCBX_DIALOG };
	CWzComboBox	m_comboType;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestcbxDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTestcbxDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTCBXDLG_H__E9CD2159_AE6D_4E1C_A132_AA77A0AA4F65__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, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer (Senior)
China China
I had graduated from HuaZhong University of Science & Technology. Now, I'm working in ZTE.

Comments and Discussions