📄 example_3view.h
字号:
// Example_3View.h : interface of the CExample_3View class
//
/////////////////////////////////////////////////////////////////////////////
#include <math.h>
#if !defined(AFX_EXAMPLE_3VIEW_H__53BF810A_E0E1_4A4A_A805_B52C22A5B4F8__INCLUDED_)
#define AFX_EXAMPLE_3VIEW_H__53BF810A_E0E1_4A4A_A805_B52C22A5B4F8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
const int DRAWWIDTH=480;
const int DRAWHEIGHT=1200;
class CExample_3View : public CScrollView
{
protected: // create from serialization only
CExample_3View();
DECLARE_DYNCREATE(CExample_3View)
int m_NumCols,m_NumRows;
int m_PageHeight,m_PageWidth;
// Attributes
public:
CExample_3Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CExample_3View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
protected:
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_option;
CString fdn;
int n;
void Dline(int n,CString fdn);
virtual ~CExample_3View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CExample_3View)
afx_msg void OnIndex1();
afx_msg void OnIndex2();
afx_msg void OnIndex3();
afx_msg void OnFilePrintDirectly();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
int Ptable(CDC* pDC);
};
#ifndef _DEBUG // debug version in Example_3View.cpp
inline CExample_3Doc* CExample_3View::GetDocument()
{ return (CExample_3Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EXAMPLE_3VIEW_H__53BF810A_E0E1_4A4A_A805_B52C22A5B4F8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -