📄 daolistview.h
字号:
#if !defined(AFX_DAOLISTVIEW_H__942FC3C3_BEDF_11D4_A7B4_0010B54D545E__INCLUDED_)
#define AFX_DAOLISTVIEW_H__942FC3C3_BEDF_11D4_A7B4_0010B54D545E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DaoListView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDaoListView view
class CDAOQryDoc;
class CDaoListView : public CListView
{
protected: // create from serialization only
CDaoListView();
DECLARE_DYNCREATE(CDaoListView)
// Attributes
public:
CDAOQryDoc* GetDocument();
CDaoDatabase* m_pDB;
// Operations
public:
void EraseList();
void ShowDatabase();
void ShowIndexes(LPCTSTR strTableName,LPCTSTR strIndexName = NULL);
void ShowRelations(LPCTSTR strRelationName = NULL);
void ShowTableSchema(LPCTSTR strTableDefName = NULL);
void ShowTableData(LPCTSTR strTableName);
void ShowQuerySchema(LPCTSTR strQueryDefName = NULL);
void RunQueryDef(LPCTSTR strQueryDefName);
void ShowFields(LPCTSTR strTableName,LPCTSTR strFieldName = NULL);
protected:
void ShowDatabaseInfo(int nItem,CDaoDatabaseInfo& Info);
void ShowIndexInfo(int nItem,CDaoIndexInfo& Info);
void ShowRelationInfo(int nItem,CDaoRelationInfo& Info);
void ShowTableDefInfo(int nItem,CDaoTableDefInfo& tInfo);
void ShowQueryDefInfo(int nItem,CDaoQueryDefInfo& qdInfo);
void ShowFieldInfo(int nItem,CDaoFieldInfo& fInfo);
void DisplayColumnHeadings(UINT nStringID);
void AdjustColumnWidths();
void AddItem(int nItem,int nSubItem,LPCTSTR strItem);
LPCTSTR CrackBOOL(BOOL bFlag);
LPCTSTR CrackFieldType(short sType);
LPCTSTR CrackQueryDefType(short sType);
CString CrackVARIANT(COleVariant& var);
int m_nColumns;
BOOL m_bVertical;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDaoListView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDaoListView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDaoListView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DAOLISTVIEW_H__942FC3C3_BEDF_11D4_A7B4_0010B54D545E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -