drawformview.h
来自「《MFC经典问答》pdf格式 拿出来大家共享一下」· C头文件 代码 · 共 70 行
H
70 行
// DrawFormView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDrawFormView form view
class CDrawFormView : public CFormView
{
protected:
CDrawFormView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDrawFormView)
// Form Data
public:
//{{AFX_DATA(CDrawFormView)
enum { IDD = IDD_FORMVIEW };
CEdit m_edtY;
CEdit m_edtX;
CComboBox m_cmbShape;
CButton m_cmdApply;
int m_nX;
int m_nY;
int m_nShape;
//}}AFX_DATA
// Attributes
public:
CDrawDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDrawFormView)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDrawFormView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CToolTipCtrl m_ToolTip; // Tooltip control
// Generated message map functions
//{{AFX_MSG(CDrawFormView)
afx_msg void OnApply();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in DrawFormView.cpp
inline CDrawDoc* CDrawFormView::GetDocument()
{ return (CDrawDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?