www.pudn.com > no4scr.rar > ScrSaverWnd.h
#if !defined(AFX_SCRSAVERWND_H__868CFE70_67D9_407F_95F4_2B3F37DC986B__INCLUDED_)
#define AFX_SCRSAVERWND_H__868CFE70_67D9_407F_95F4_2B3F37DC986B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ScrSaverWnd.h : header file
//
#include "windef.h"
#include "Global.h"
/////////////////////////////////////////////////////////////////////////////
// CScrSaverWnd window
class CScrSaverWnd : public CWnd
{
// Construction
public:
CScrSaverWnd();
// Attributes
public:
LPCTSTR lpszClassName;
unsigned int TextSrcX;
unsigned int TextSrcY;
int CountI,CountJ,CountK,CountL,CountA,CountB,CountC,CountD; //内部构造变量不可用static
static char MatrixCode[200]; //外部重载为static
static int length[80]; //
static int position[80]; //
static int cycle[80]; //
static int pointer[80]; //
CFont Font1,Font2;
//注册类名
// Operations
public:
BOOL Create();
private:
UINT ID_TIMER;
CPoint m_Point;
void DrawBitmap(CDC& dc, int m_nIndex);
void OutputText(CDC& dc);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CScrSaverWnd)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CScrSaverWnd();
// Generated message map functions
protected:
virtual void PostNcDestroy();
//{{AFX_MSG(CScrSaverWnd)
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 OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(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_SCRSAVERWND_H__868CFE70_67D9_407F_95F4_2B3F37DC986B__INCLUDED_)