开发者

Create a CBitmap from Resources ID

开发者 https://www.devze.com 2022-12-29 05:19 出处:网络
I need to fill a CImageList with a number of bitmaps which are stor开发者_运维技巧ed in separate bmp files (rather than as a single bmp with numerous parts). I assume I need to create a CBitmap so I c

I need to fill a CImageList with a number of bitmaps which are stor开发者_运维技巧ed in separate bmp files (rather than as a single bmp with numerous parts). I assume I need to create a CBitmap so I can call the Add method of CImageList. So how might one create a CBitmap object using only MFC Resource IDs?


You just need to use the method CBitmap::LoadBitmap.

You can either load the bitmap from the file or from resources.

0

精彩评论

暂无评论...
验证码 换一张
取 消