childview.h

来自「可以在状态栏中随鼠标移动实时显示出设备坐标和逻辑坐标」· C头文件 代码 · 共 57 行

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

#if !defined(AFX_CHILDVIEW_H__17413A5D_C2F4_4D85_8569_F94B1834E68A__INCLUDED_)
#define AFX_CHILDVIEW_H__17413A5D_C2F4_4D85_8569_F94B1834E68A__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:
	void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
	void DrawSinLine(CPaintDC &dc, CPoint pt1, CPoint pt2);
	void DrawSpecialRect(CPaintDC &dc, CRect rect);
	virtual ~CChildView();

	// Generated message map functions
protected:
	CPoint m_ptMouse;  //Stores the position of mouse with logical coordinate.
	//{{AFX_MSG(CChildView)
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_CHILDVIEW_H__17413A5D_C2F4_4D85_8569_F94B1834E68A__INCLUDED_)

⌨️ 快捷键说明

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