⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drawwnd.h

📁 一个利用CImage.Lib开发的屏幕保护程序源代码
💻 H
字号:
// drawwnd.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDrawWnd window

class CDrawWnd : public CWnd
{
// Construction
public:
	CDrawWnd(BOOL bAutoDelete = TRUE);

// Attributes
public:
	CString BitmapPath;
	CCollection<CString> BitmapList;

	CRgn m_rgnLast;
	long m_nCounter;
	int m_nWidth;
	int m_nSteps;
	int m_nPos;
	int m_nStep;
	int m_nScale;
	int m_nHeight;
	int m_nStyle;
	UINT m_nTimerID;
	LOGBRUSH m_logbrush;
	LOGBRUSH m_logbrushBlack;
	static LPCTSTR m_lpszClassName;
	void SetSpeed(int nSpeed);
	//void SetResolution(int nRes);
	//void SetColor(COLORREF cr);
	//void SetPenWidth(int nWidth);
	//void SetLineStyle(int nStyle);

// Operations
public:
	//void DrawLetter(CDC& dc, CPoint pt, int p1[][3], int p2[][3], int nLen);
	void SearchFiles(const char* BitmapPath, const char* filter);
	void Draw(CDC& dc, int nWidth);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDrawWnd)
	public:
	virtual BOOL Create(DWORD dwExStyle, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	protected:
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CDrawWnd();

protected:
	BOOL m_bAutoDelete;

	// Generated message map functions
protected:
	//{{AFX_MSG(CDrawWnd)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

⌨️ 快捷键说明

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