MYWND.H
上传用户:trhysrzt
上传日期:2022-03-19
资源大小:9454k
文件大小:1k
- #pragma once
- // CMyWnd
- class CMyWnd : public CWnd
- {
- DECLARE_DYNAMIC(CMyWnd)
- public:
- CMyWnd();
- virtual ~CMyWnd();
- static LPCSTR lpszClassName;//注册类名
- CPoint m_prePoint;//检测鼠标移动
- bool Create();
- protected:
- DECLARE_MESSAGE_MAP()
- public:
-
- afx_msg void OnTimer(UINT nIDEvent);
- void DrawBitmap(CDC& dc, int nIndexBit);
- afx_msg void OnPaint();
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- protected:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- public:
- afx_msg void OnDestroy();
- // 特效,逐行显示
- void ScanDown(CDC* pDC, CBitmap* pBmp, int nLeft, int nTop, int nWidth, int nHeight);
- void ScanRight(CDC* pDC, CBitmap* pBmp, int nLeft, int nTop, int nWidth, int nHeight);
- void MoveDown(CDC* pDC, CBitmap* pBmp, int nLeft, int nTop, int nWidth, int nHeight);
- void MoveUp(CDC* pDC, CBitmap* pBmp, int nLeft, int nTop, int nWidth, int nHeight);
- void BlindWindow(CDC* pDC, CBitmap* pBmp, int nLeft, int nTop, int nWidth, int nHeight);
- void StripWindow(CDC* pDC, CBitmap* pBmp, int nLeft, int nTop, int nWidth, int nHeight);
- void MasicWindow(CDC* pDC, CBitmap* pBmp, int nLeft, int nTop, int nWidth, int nHeight);
- void WaitTime(int nTime);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnMove(int x, int y);
- };