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

📄 halphactrl.h

📁 枚举主机网络设备
💻 H
字号:
#if !defined(AFX_HALPHACTRL_H__C9410CD9_FF3A_4711_9DC3_D383C4689742__INCLUDED_)
#define AFX_HALPHACTRL_H__C9410CD9_FF3A_4711_9DC3_D383C4689742__INCLUDED_

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

#include "HBitmap.h"
/////////////////////////////////////////////////////////////////////////////
// CHAlphaCtrl window

class AFX_EXT_CLASS CHAlphaCtrl : public CStatic
{
	class AFX_EXT_CLASS CHAlphaDisplayThreadParm
	{
	public:
		CHAlphaDisplayThreadParm(){};
		CHAlphaDisplayThreadParm(CWnd *pCtrl,
			BOOL bCenterPic=FALSE,
			CRect rc=CRect(0,0,0,0),
			int nAlphaStart=0,
			int nAlphaEnd=255,
			int nAlphaStep=5){
			m_pWnd=pCtrl;
			m_bCenterPic=bCenterPic;
			m_rcDest=rc;
			m_nAlphaStart=nAlphaStart;
			m_nAlphaEnd=nAlphaEnd;
			m_nAlphaStep=nAlphaStep;
		}
		CHAlphaDisplayThreadParm(CHAlphaDisplayThreadParm& other){
			(*this)=other;
		}
		~CHAlphaDisplayThreadParm(){};
		CHAlphaDisplayThreadParm& operator=(CHAlphaDisplayThreadParm& other){
			m_pWnd=other.m_pWnd;
			m_bCenterPic=other.m_bCenterPic;
			m_rcDest=other.m_rcDest;
			m_nAlphaStart=other.m_nAlphaStart;
			m_nAlphaEnd=other.m_nAlphaEnd;
			m_nAlphaStep=other.m_nAlphaStep;
			return other;
		}
	public:
		CWnd*		m_pWnd;
		CRect		m_rcDest;
		BOOL		m_bCenterPic;
		int			m_nAlphaStart;
		int			m_nAlphaEnd;
		int			m_nAlphaStep;
	};
// Construction
public:
	CHAlphaCtrl();
	static UINT tdDisplay(LPVOID lpParam);

// Attributes
public:
	BOOL m_bCanPaint;
	HINSTANCE			m_hResourceInstance;
	CHBitmap			m_Bmp;
	CString				m_strBmp;
	UINT				m_nBmpID;
	int					m_nTimer;

// Operations
public:

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

// Implementation
public:
	BOOL LoadAlphaBitmap(UINT uID,
						int iTimer,
						BOOL bCenterPic=FALSE,
						CRect rcWnd=CRect(0,0,0,0),
						int nAlphaStart=0,
						int nAlphaEnd=255,
						int nAlphaStep=5);
	BOOL LoadAlphaBitmap(HINSTANCE hInstance,
						LPCTSTR lpResourceName,
						int iTimer,
						BOOL bCenterPic=FALSE,
						CRect rcWnd=CRect(0,0,0,0),
						int nAlphaStart=0,
						int nAlphaEnd=255,
						int nAlphaStep=5);
	BOOL LoadAlphaBitmap(CString strFileName,
						int iTimer,
						BOOL bCenterPic=FALSE,
						CRect rcWnd=CRect(0,0,0,0),
						int nAlphaStart=0,
						int nAlphaEnd=255,
						int nAlphaStep=5);
	void AlphaDisplay(CDC& pDC,
					CClientDC& dc,
					BLENDFUNCTION& rBlendProps,
					int width,
					int heigh,
					byte nLevel,
					BOOL bCenterPic=FALSE,
					CRect rcWnd=CRect(0,0,0,0));
	virtual ~CHAlphaCtrl();

	// Generated message map functions
protected:
	//{{AFX_MSG(CHAlphaCtrl)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HALPHACTRL_H__C9410CD9_FF3A_4711_9DC3_D383C4689742__INCLUDED_)

⌨️ 快捷键说明

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