custompreview.h

来自「讲mfc的书」· C头文件 代码 · 共 61 行

H
61
字号
#if !defined(AFX_CUSTOMPREVIEW_H__67D50D01_E440_11D0_B7BA_444553540000__INCLUDED_)
#define AFX_CUSTOMPREVIEW_H__67D50D01_E440_11D0_B7BA_444553540000__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// CustomPreview.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CCustomPreview view

#include <afxpriv.h>

#include "ConnDotDoc.h"
class CCustomPreview : public CPreviewView
{
protected:
	CCustomPreview();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CCustomPreview)

// Attributes
public:

// Operations
public:
	BOOL editmode;
	void ConvertPoint(CPoint &pt);
	CConndotDoc *GetDocument();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCustomPreview)
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CCustomPreview();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CCustomPreview)
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnEditMode();
	afx_msg void OnUpdateEditMode(CCmdUI* pCmdUI);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CUSTOMPREVIEW_H__67D50D01_E440_11D0_B7BA_444553540000__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?