?? mydatabaseview.h
字號:
// MyDatabaseView.h : interface of the CMyDatabaseView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYDATABASEVIEW_H__ED121BED_F570_43AF_989D_56FB68E34E73__INCLUDED_)
#define AFX_MYDATABASEVIEW_H__ED121BED_F570_43AF_989D_56FB68E34E73__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMyDatabaseSet;
class CMyDatabaseView : public CRecordView
{
protected: // create from serialization only
CMyDatabaseView();
DECLARE_DYNCREATE(CMyDatabaseView)
public:
//{{AFX_DATA(CMyDatabaseView)
enum { IDD = IDD_MYDATABASE_FORM };
CMyDatabaseSet* m_pSet;
/* long m_nID;
long m_nMath;
CString m_szName;
CString m_sex;
long m_nCh;*/
//}}AFX_DATA
// Attributes
public:
CMyDatabaseDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDatabaseView)
public:
virtual CRecordset* OnGetRecordset();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL OnMove(UINT nIDMoveCommand);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
int m_nNum;
virtual ~CMyDatabaseView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
bool m_bAddMode;
//{{AFX_MSG(CMyDatabaseView)
afx_msg void OnSort();
afx_msg void OnUndo();
afx_msg void OnModify();
afx_msg void OnDelete();
afx_msg void OnAddnew();
afx_msg void OnButton1();
afx_msg void OnRecordFirst();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MyDatabaseView.cpp
inline CMyDatabaseDoc* CMyDatabaseView::GetDocument()
{ return (CMyDatabaseDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYDATABASEVIEW_H__ED121BED_F570_43AF_989D_56FB68E34E73__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -