📄 addtbdlg1.h
字号:
#define MAX_TYPES 12
/////////////////////////////////////////////////////////////////////////////
// CDlgAddTable dialog
class CDlgAddTable : public CDialog
{
// Construction
public:
void setTypeDependentStatesAndExisting(int theType, BOOL bExistingField);
int m_nFieldIndex;
BOOL m_bCheckDDV;
BOOL m_bFirstFieldAdded;
int m_nTypeMap[MAX_TYPES];
CDaoTableDef * m_pTableDef;
CDaoDatabase * m_pDatabase;
CDlgAddTable(CWnd* pParent = NULL);
CDlgAddTable(CDaoDatabase *pDatabase, CString strTableName, CWnd * pParent = NULL);
void DDV_NoSel(CDataExchange* pDX, CComboBox *theControl);
void initializer();
void fieldInitializer(BOOL bInitOrdPos = TRUE);
BOOL CreateNewField();
BOOL CreateNewTableDef();
enum theTypes { Boolean, Byte, Currency, Date, Double, Long,
LongBinary, Memo, Short, Single, Text };
// Dialog Data
// controls on the dialog and data they transfer from/to
//{{AFX_DATA(CDlgAddTable)
enum { IDD = IDD_ADD_TABLE_DLG2 };
CEdit m_ValidationTextControl;
CEdit m_ValidationRuleControl;
CButton m_RequireControl;
CEdit m_OrdinalPositionControl;
CEdit m_TableNameControl;
CEdit m_NameControl;
CEdit m_SizeControl;
CEdit m_DefaultValueControl;
CButton m_AutoIncrFieldControl;
CButton m_FieldVariabilityControl;
CComboBox m_TypeControl;
CString m_strTableName;
CDaoFieldInfo m_FI;
int m_FieldVariability;
BOOL m_bAutoIncrField;
CString m_strValidationRule;
CString m_strValidationText;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgAddTable)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgAddTable)
virtual BOOL OnInitDialog();
afx_msg void OnNextField();
afx_msg void OnSelendokType();
afx_msg void OnDone();
afx_msg void OnClose();
afx_msg void OnPreviousField();
afx_msg void OnDeleteField();
afx_msg void OnAddField();
afx_msg void OnCloseupType();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -