?? databaseview.h
字號:
#if !defined(AFX_DATABASEVIEW_H__26F8BE83_187B_11D3_B40F_98A2DB000000__INCLUDED_)
#define AFX_DATABASEVIEW_H__26F8BE83_187B_11D3_B40F_98A2DB000000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DatabaseView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDatabaseView view
#include "data1ret.h"
class CDatabaseView : public CScrollView
{
protected:
CDatabaseView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDatabaseView)
private:
CDataBaseSet* m_pSet;
CData1Set* m_pSet1;
CLinkDataSet* m_pLinkSet1;
short nCharHeight,nCharWidth; //字體的高度和寬度
int nRecord,nField; //記錄集的記錄數和字段數
int nScreenWide,nScreenHeight; //視圖的寬度和高度
short nFieldWide[200]; //每個字段的顯示寬度
short nFieldStart[200]; //每個字段的開始字節
CSize sizeTotal;
CSize sizePage;
CSize sizeLine;
int nIndex; //當前指向的記錄序號
short nSelectData; //選中的數據對象的序號
// Attributes
public:
CDrawDoc* GetDocument(); //得到文檔類的指針
// Operations
public:
void GetRect(int nRow,CRect* r1);
void Init1();
void Init2();
int GetOnlyID();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDatabaseView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate(); // first time after construct
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDatabaseView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDatabaseView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRecordAdd();
afx_msg void OnRecordModify();
afx_msg void OnRecordFilter();
afx_msg void OnRecordSort();
afx_msg void OnRecordDelete();
afx_msg void OnRecordLink();
afx_msg void OnRecordDeleteAll();
afx_msg void OnFileSelect();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in DrawView.cpp
inline CDrawDoc* CDrawView::GetDocument()
{ return (CDrawDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DATABASEVIEW_H__26F8BE83_187B_11D3_B40F_98A2DB000000__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -