使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 0408576e9da10015ffa9da0079b8c985113ce4b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#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();
};