www.pudn.com > 屏保护ScreenSaver.rar > MyWnd.h


#if !defined(AFX_MYWND_H__1FB059C9_0AF3_42C9_AC24_71CF8D7051EF__INCLUDED_) 
#define AFX_MYWND_H__1FB059C9_0AF3_42C9_AC24_71CF8D7051EF__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// MyWnd.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CMyWnd window 
 
class CMyWnd : public CWnd 
{ 
// Construction 
public: 
	CMyWnd(); 
	static LPCSTR lpszClassName; //注册类名 
	BOOL Create(); 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMyWnd) 
	public: 
	protected: 
	virtual void PostNcDestroy(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CMyWnd(); 
 
	// Generated message map functions 
protected: 
	CPoint m_prePoint; //检测鼠标移动 
	void DrawBitmap(CDC& dc, int nIndexBit); 
	//{{AFX_MSG(CMyWnd) 
	afx_msg void OnPaint(); 
	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 OnDestroy(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); 
	afx_msg void OnActivateApp(BOOL bActive, HTASK hTask); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MYWND_H__1FB059C9_0AF3_42C9_AC24_71CF8D7051EF__INCLUDED_)