menusampleview.h

来自「《突破Visual C++.NET编程实例五十讲+源文件,初学者学习的好东东!」· C头文件 代码 · 共 53 行

H
53
字号

#if !defined(AFX_MenuSampleVIEW_H__570E5259_6392_11D3_A25F_0000B45C6D5E__INCLUDED_)
#define AFX_MenuSampleVIEW_H__570E5259_6392_11D3_A25F_0000B45C6D5E__INCLUDED_
#pragma once

class CMenuSampleView : public CView
{
public:
	CFont		*m_pFont;
	int			 m_Height;
	COLORREF	 m_crText;
	COLORREF	 m_crBack;
	CBrush		*m_pBrush;
	CRect		 m_rcFile;
	CRect		 m_rcEdit;
	CRect		 m_rcControl;
	bool		 m_bCheck1;
	bool		 m_bCheck2;

protected:
	CMenuSampleView();
	DECLARE_DYNCREATE(CMenuSampleView)

	//{{AFX_MSG(CMenuSampleView)
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	void ControlMenu(CPoint point);
	void FileMenu(void);
	void EditMenu(void);
	void EditColor(COLORREF& cr);

public:
	//{{AFX_VIRTUAL(CMenuSampleView)
	public:
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

	virtual ~CMenuSampleView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
};


//{{AFX_INSERT_LOCATION}}


#endif // !defined(AFX_MenuSampleVIEW_H__570E5259_6392_11D3_A25F_0000B45C6D5E__INCLUDED_)

⌨️ 快捷键说明

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