childview.h

来自「这些源代码」· C头文件 代码 · 共 75 行

H
75
字号
// ChildView.h : interface of the CChildView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CHILDVIEW_H__BFE1F3C6_3361_11D4_85B6_3ED14D000000__INCLUDED_)
#define AFX_CHILDVIEW_H__BFE1F3C6_3361_11D4_85B6_3ED14D000000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CChildView window

class CChildView : public CWnd
{
// Construction
public:
	CChildView();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChildView)
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CChildView();

	// Generated message map functions
protected:
	//{{AFX_MSG(CChildView)
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnFilePlaymetafile();
	afx_msg void OnMetafileRecord();
	afx_msg void OnMetafileStop();
	afx_msg void OnMetafileClear();
	afx_msg void OnFileRectangles();
	//}}AFX_MSG

	void DoMouseEvent (UINT message, UINT nFlags, POINT & point);
	void DoMouseLine (CWindowDC& dc, POINT & ptLineStart, POINT & ptLineEnd);

private:
	bool	m_bTracking;
	POINT	m_ptLineStart;
	POINT	m_ptLineEnd;
	POINT	m_ptLast;
	CMetaFileDC		m_mdc;
	HMETAFILE		m_hm;
	bool	m_bSave;

	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHILDVIEW_H__BFE1F3C6_3361_11D4_85B6_3ED14D000000__INCLUDED_)

⌨️ 快捷键说明

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