ex18view.h
来自「一些VC++的经典实例」· C头文件 代码 · 共 74 行
H
74 行
// ex18View.h : interface of the CEx18View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EX18VIEW_H__DEC2D9D4_6214_474A_9BF4_CE0E71C964B7__INCLUDED_)
#define AFX_EX18VIEW_H__DEC2D9D4_6214_474A_9BF4_CE0E71C964B7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CModellessDlg;
class CEx18View : public CView
{
private:
CModellessDlg* m_pDlg;
CModellessDlg* m_ModelDlg;
protected: // create from serialization only
CEx18View();
DECLARE_DYNCREATE(CEx18View)
// Attributes
public:
CEx18Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEx18View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CEx18View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CEx18View)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
afx_msg LRESULT OnGoodbye(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ex18View.cpp
inline CEx18Doc* CEx18View::GetDocument()
{ return (CEx18Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EX18VIEW_H__DEC2D9D4_6214_474A_9BF4_CE0E71C964B7__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?