📄 sanguo_view.h
字号:
// SanGuo_View.h : interface of the CSanGuo_View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SANGUO_VIEW_H__D94686C6_7993_45C3_81F4_73FE0EE4FB29__INCLUDED_)
#define AFX_SANGUO_VIEW_H__D94686C6_7993_45C3_81F4_73FE0EE4FB29__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CSanGuo_Set;
class CSanGuo_View : public CRecordView
{
protected: // create from serialization only
CSanGuo_View();
DECLARE_DYNCREATE(CSanGuo_View)
public:
//{{AFX_DATA(CSanGuo_View)
enum { IDD = IDD_SANGUO__FORM };
CListCtrl m_ListShow;
CSanGuo_Set* m_pSet;
CString m_strAccount;
CString m_strPassword;
CString m_strName;
CString m_strNameEx;
CString m_strPlace;
CString m_strForce;
CString m_strIntel;
CString m_strShort;
//}}AFX_DATA
// Attributes
public:
CSanGuo_Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSanGuo_View)
public:
virtual CRecordset* OnGetRecordset();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
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:
virtual ~CSanGuo_View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSanGuo_View)
afx_msg void OnButtonAdd();
afx_msg void OnClickListShow(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnButtonChange();
afx_msg void OnButtonDelete();
afx_msg void OnButtonQuery();
afx_msg void OnButtonQuery2();
afx_msg void OnButtonQuery3();
afx_msg void OnButtonQuery4();
afx_msg void OnButtonQuery5();
afx_msg void OnButtonLadn();
afx_msg void OnButtonEnroll();
afx_msg void OnButtonExit();
afx_msg void OnButtonHelp();
afx_msg void OnButtonQuery6();
afx_msg void OnButtonShowall();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
//////////////////////////////////////////////////////////////////////////////////////
void EnableAllDlg(bool); //用于让所有非登陆对话框激活或失活
void ShowList(); //用于显示列表的函数
void Query(CString,CString,CString,bool);
//用于查询各种不同的属性:参数1为要查询的字符串,2为显示的属性名,3为表中要查询的属性名
//(要与表列头完全一致),4为要查询的是否为字符串,是为1,不是为0
private:
int m_iSelect; //用于记录鼠标点击列表中第几行
//////////////////////////////////////////////////////////////////////////////////////
};
#ifndef _DEBUG // debug version in SanGuo_View.cpp
inline CSanGuo_Doc* CSanGuo_View::GetDocument()
{ return (CSanGuo_Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SANGUO_VIEW_H__D94686C6_7993_45C3_81F4_73FE0EE4FB29__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -