forked from sabrogden/Ditto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainTable.h
78 lines (62 loc) · 2 KB
/
MainTable.h
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#if !defined(AFX_MAINTABLE_H__F5CFB0A6_A6E1_4C55_A685_AB5F1A0FCF53__INCLUDED_)
#define AFX_MAINTABLE_H__F5CFB0A6_A6E1_4C55_A685_AB5F1A0FCF53__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ArrayEx.h"
#include "Misc.h"
class CMainTable : public CDaoRecordset
{
public:
CMainTable(CDaoDatabase* pDatabase = NULL);
DECLARE_DYNAMIC(CMainTable)
// Field/Param Data
//{{AFX_FIELD(CMainTable, CDaoRecordset)
long m_lID;
long m_lDate;
CString m_strText;
long m_lShortCut;
long m_lDontAutoDelete;
long m_lTotalCopySize;
BOOL m_bIsGroup;
long m_lParentID;
double m_dOrder;
long m_lDataID;
//}}AFX_FIELD
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainTable)
public:
virtual CString GetDefaultDBName(); // Default database name
virtual CString GetDefaultSQL(); // Default SQL for Recordset
virtual void DoFieldExchange(CDaoFieldExchange* pFX); // RFX support
virtual void Open(int nOpenType = AFX_DAO_USE_DEFAULT_TYPE, LPCTSTR lpszSql = NULL, int nOptions = 0);
virtual void Requery();
//}}AFX_VIRTUAL
public:
CString GetDisplayText( int nMaxLines );
void AddNew(); // assigns the new autoincr ID to m_lID
void OnQuery();
int m_nFieldCount;
bool m_bBindFields;
bool SetBindFields(bool bVal);
// long GetID();
// int m_nCurPos;
// long m_lCurID; // used to validate m_nCurPos
// copies the current source record to this current record
void CopyRec( CMainTable& source );
// makes a new copy of the current record and moves to the copy record
void NewCopyRec();
// ONLY deletes from Main
static BOOL DeleteAll();
static void LoadAcceleratorKeys( CAccels& accels );
void Open(LPCTSTR lpszFormat,...);
// Implementation
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINTABLE_H__F5CFB0A6_A6E1_4C55_A685_AB5F1A0FCF53__INCLUDED_)