screensvrwnd.h

来自「"Visual C++.net实践与提高-深入Windows编程"的源代码」· C头文件 代码 · 共 62 行

H
62
字号
#if !defined(AFX_SCREENSVRWND_H__7484731D_8B2E_40E7_882A_DB7B214C5DAC__INCLUDED_)
#define AFX_SCREENSVRWND_H__7484731D_8B2E_40E7_882A_DB7B214C5DAC__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CScreenSvrWnd window

class CScreenSvrWnd : public CWnd
{
// Construction
public:
	CScreenSvrWnd(CWnd* pwnd = NULL ) ;

// Attributes
public:
	CWnd * pParentWnd ;		// 预览情况下有父窗口,显示情况下无父窗口
private:
	CPoint m_ptInitCursor ;		// 鼠标初始位置

// Operations
public:
	BOOL Create() ;

public:
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CScreenSvrWnd)
	protected:
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CScreenSvrWnd();

	// Generated message map functions
protected:
	//{{AFX_MSG(CScreenSvrWnd)
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnClose();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_SCREENSVRWND_H__7484731D_8B2E_40E7_882A_DB7B214C5DAC__INCLUDED_)

⌨️ 快捷键说明

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