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

📄 alphaimagelist.h

📁 版本更新了一下
💻 H
字号:
/*********************************************************************
* IE-like Menu and Toolbar, version 1.5 (August 3, 2004)
* Copyright (C) 2002-2003 Michal Mecinski.
*
* You may freely use and modify this code, but don't remove
* this copyright note.
*
* THERE IS NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, FOR
* THIS CODE. THE AUTHOR DOES NOT TAKE THE RESPONSIBILITY
* FOR ANY DAMAGE RESULTING FROM THE USE OF IT.
*
* E-mail: mimec@mimec.org
* WWW: http://www.mimec.org
********************************************************************/

#pragma once

// image list styles
#define AILS_OLD	0	// use old 16 color images
#define AILS_NEW	1	// use new 8-32 bit images

// image list selectors
#define AIL_NORMAL		0
#define AIL_HOT			1
#define AIL_DISABLED	2


class CAlphaImageList  
{
public:
	CAlphaImageList();
	virtual ~CAlphaImageList();

public:
	// Create with given image size, style and initial count
	BOOL Create(int nWidth, int nHeight, int nStyle, int nCnt=0);

	// Add bitmap resource
	BOOL AddBitmap(UINT nID);

	// Draw image of given type
	BOOL Draw(CDC* pDC, CPoint ptPos, int nImgList, int nIndex);

	// Get handle of image list
	HIMAGELIST GetImageList(int nImgList);

protected:
	CImageList m_ilNormal;		// normal images
	CImageList m_ilHot;			// hot images (saturated)
	CImageList m_ilDisabled;	// disabled images (grayscale)

	int m_nBmpDepth;	// imagelist bitmap depth (ILC_COLOR4/24/32)
	CSize m_szImg;		// size of images
};

⌨️ 快捷键说明

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