#pragma once #include "CursorBase.h" #include "dbCursor.h" #include "MBAMDBConnect.h" // CExtProperty command target #define CLASS_ACTIVEVIEW _T( "_ActiveView" ) #define CLASS_VIEWEXPEND _T( "_ViewExpend" ) #define CLASS_SYSTEM _T( "_System" ) #define CLASS_DBVERSION _T( "_DBVersion" ) class CExtPropertyItem : public CCursorBase { public: CExtPropertyItem( ); virtual ~CExtPropertyItem(); // Attributes public: CString m_strClass; CString m_strName; CString m_strValue; // Operations public: void Clear(); virtual BOOL GetItemValue( CString strName, CString &strValue ) { return CCursorBase::GetItemValue( strName, strValue ); } virtual BOOL GetItemValue( CString strName, COleVariant &varData ); BOOL InsertRecord( CDBConnect *pAConnect); BOOL UpdateRecord(CDBConnect *pAConnect ); }; class AFX_EXT_CLASS CExtPropertys : public CdbCursor, public CExtPropertyItem { public: CExtPropertys( CMBAMDBConnect *pAConnect); virtual ~CExtPropertys(); // Attributes public: // Operations public: int LoadValue( LPCTSTR lpszClass, LPCTSTR lpszName ); bool RemoveValue( LPCTSTR lpszClass, LPCTSTR lpszName ); public: virtual bool GetData( ); BOOL SaveData(); };