splashwnd.h

来自「俄罗斯方块」· C头文件 代码 · 共 60 行

H
60
字号
//Splash for MFC
#if !defined(AFX_SPLASHWND_H__B00C23E0_04EE_11D2_9AA3_0060B0CDC13E__INCLUDED_)
#define AFX_SPLASHWND_H__B00C23E0_04EE_11D2_9AA3_0060B0CDC13E__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// SplashWnd.h : header file
//


/////////////////////////////////////////////////////////////////////////////
// CSplashWnd window

class CSplashWnd : public CWnd
{
// Construction
public:
	CSplashWnd(UINT nBitmapID, UINT nDuration = 3500);

// Attributes
public:
	BOOL Create();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMySplashWnd)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:

// Generated message map functions
protected:
	//{{AFX_MSG(CMySplashWnd)
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

protected:
	UINT		m_nBitmapID;
	UINT		m_nDuration;
	UINT		m_nTimerID;
	CBitmap	    m_bitmap;
	CWnd		m_wndInvisible;
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SPLASHWND_H__B00C23E0_04EE_11D2_9AA3_0060B0CDC13E__INCLUDED_)

⌨️ 快捷键说明

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