Click here to Skip to main content
15,891,431 members
Articles / Desktop Programming / ATL

CM_ConfigBuilder 1.2g: Visual Studio 6/Visual Studio 2005/Visual Studio 2008 Code Generator for Application Settings Graphic Management

Rate me:
Please Sign up or sign in to vote.
4.94/5 (126 votes)
12 Feb 2008CPOL17 min read 697.4K   9.8K   262  
CM_ConfigBuilder generates and compiles the required files to manage your application's settings/preferences and to store/retrieve them in XML format.
// PropPage_CppSettings.h : header file
//
#if !defined(_PROPPAGE_CPPSETTINGS_H_)
#define _PROPPAGE_CPPSETTINGS_H_

#include "CfgComboBox.h"

class CXmlProjectSettings_Cpp;

/////////////////////////////////////////////////////////////////////////////
// CPropPage_CppSettings dialog

class CPropPage_CppSettings : public CPropertyPage
{
	DECLARE_DYNCREATE(CPropPage_CppSettings)

// Construction
public:
	CPropPage_CppSettings();
	~CPropPage_CppSettings();

// Dialog Data
	//{{AFX_DATA(CPropPage_CppSettings)
	enum { IDD = IDD_PROPERTY_CPP };
	CStatic	lblResourceOffset_;
	CEdit	txtResourceOffset_;
	CButton	cmdBrowsePath2_;
	CEdit	txtPostBuildPath_;
	CEdit	txtFolders_;
	CButton	chkEnableCpp_;
	CEdit	txtGenerationPath_;
	CButton	cmdReset_;
	CButton	cmdBrowsePath_;
	CEdit	txtClassPrefix_;
	CButton	chkGenerateTestProject_;
	CButton	chkGenerateGui_;
	CButton	chkDeleteOldFiles_;
	//}}AFX_DATA

	virtual void SetData(CXmlProjectSettings_Cpp* cppSettings);
	virtual void StoreData();

// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPropPage_CppSettings)
	public:
	virtual BOOL OnApply();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void DisplaySettings();
	void UpdateControlsEnable();
	void UpdateFoldersDescription();

	// Generated message map functions
	//{{AFX_MSG(CPropPage_CppSettings)
	virtual BOOL OnInitDialog();
	afx_msg void OnCmdBrowsePath();
	afx_msg void OnChkGenerateTestProject();
	afx_msg void OnChkGenerateGuiClasses();
	afx_msg void OnChkDeletePreviouslyGeneratedFiles();
	afx_msg void OnChangeGenerationPath();
	afx_msg void OnChangeClassPrefix();
	afx_msg void OnChkEnable();
	afx_msg void OnCmdBrowsePath2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CXmlProjectSettings_Cpp* cppSettings_;
};

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

#endif // !defined(_PROPPAGE_CPPSETTINGS_H_)

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 Code Project Open License (CPOL)


Written By
Web Developer
Italy Italy
For all Stefano's latest code, binaries and tutorials visit www.codemachines.com

Comments and Discussions