Win32 Toolbars and 24bit Images

纵然是瞬间 提交于 2019-12-06 09:30:08
herohuyongtao

Check out here to get the full-featured 24-bit color toolbar. It also contains a demo solution there.

Main idea is to use:

static const UINT   kToolBarBitDepth (ILC_COLOR24);

Windows image lists do indeed support 24 bit color, and many more formats. You need to specify the color format in the flags you pass to ImageList_Create. For 24 bit color, you need to include the ILC_COLOR24 flag. The flags are documented here: http://msdn.microsoft.com/en-us/library/windows/desktop/bb775232.aspx

Problem solved...for anyone who cares when calling ImageList_Create() use ILC_COLOR24 or ILC_COLOR32...this will tell the system to use 24 or 32 bpp images.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!