テストVC++


#pragma once

#include "afxwin.h"
#include "ControlSaveAdapter.h"
#include "CollectionControlSaveAdapter.h"

namespace ControlSavable
{

	class AFX_EXT_CLASS CSavableButton : public CButton, public CControlSaveAdapter
	{
	public:
		CSavableButton(void);
		~CSavableButton(void);
		virtual void GetName( CString& name );
	};

	class AFX_EXT_CLASS CSavableTextBox : public CEdit, public CControlSaveAdapter
	{
	public:
		CSavableTextBox(void);
		~CSavableTextBox(void);
		virtual void GetName( CString& name );
	};

	class AFX_EXT_CLASS CSavableComboBox : public CComboBox, public CCollectionControlSaveAdapter
	{
	public:
		CSavableComboBox(void);
		~CSavableComboBox(void);
		virtual void GetName( CString& name );
		virtual void GetTextCollection(CArray& arrayTextCollection );
		virtual void SetTextCollection(const CArray& arrayTextCollection);
	};

	class AFX_EXT_CLASS CSavableListBox : public CListBox, public CCollectionControlSaveAdapter
	{
	public:
		CSavableListBox(void);
		~CSavableListBox(void);
		virtual void GetName( CString& name );
		virtual void GetTextCollection(CArray& arrayTextCollection );
		virtual void SetTextCollection(const CArray& arrayTextCollection);
	};

}