splashwnd.h

来自「wince WM5 loading等待窗口源码」· C头文件 代码 · 共 55 行

H
55
字号
// SplashWnd.h : interface of the CSplashWnd class
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _SPLASHWND_H_
#define _SPLASHWND_H_

/////////////////////////////////////////////////////////////////////////////
// CSplashWnd class

class CSplashWnd : public CWnd
{
// Construction
protected:
	CSplashWnd();

// Operations
public:
	static void ShowSplashScreen(UINT nIDImage, 
		UINT nDelay, CWnd* pParentWnd = NULL);
	static BOOL PreTranslateAppMessage(MSG* pMsg);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSplashWnd)
	//}}AFX_VIRTUAL

// Implementation
public:
	~CSplashWnd();
	virtual void PostNcDestroy();

protected:
	BOOL Create(CWnd* pParentWnd = NULL);
	void HideSplashScreen();
	static CSplashWnd* m_pSplashWnd;
	CBitmap m_bitmap;
	UINT m_nIDImage;
	UINT m_nDelay;
	UINT m_nTimer;

// Generated message map functions
protected:
	//{{AFX_MSG(CSplashWnd)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // _SPLASHWND_H_

⌨️ 快捷键说明

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