Click here to Skip to main content
15,891,529 members
Articles / Desktop Programming / MFC

MFC Tree State Manager using XML

Rate me:
Please Sign up or sign in to vote.
3.10/5 (9 votes)
21 May 20024 min read 148.8K   4.9K   47  
Save and restore multiple tree states in your MFC applications
// TreeStateSaverDemo.h : main header file for the TREESTATESAVERDEMO application
//

#if !defined(AFX_TREESTATESAVERDEMO_H__C5DE1F72_55A9_4F57_80BA_B8F8C71C260B__INCLUDED_)
#define AFX_TREESTATESAVERDEMO_H__C5DE1F72_55A9_4F57_80BA_B8F8C71C260B__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CTreeStateSaverDemoApp:
// See TreeStateSaverDemo.cpp for the implementation of this class
//

class CTreeStateSaverDemoApp : public CWinApp
{
public:
	CTreeStateSaverDemoApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTreeStateSaverDemoApp)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation

public:
	//{{AFX_MSG(CTreeStateSaverDemoApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_TREESTATESAVERDEMO_H__C5DE1F72_55A9_4F57_80BA_B8F8C71C260B__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.


Written By
Web Developer
India India
C++/MFC/Java programmer, I like to work on high performance user interface programming.

Comments and Discussions