读书人

ATL中加载图片资源要如何弄

发布时间: 2012-01-20 18:53:53 作者: rapoo

ATL中加载图片资源要怎么弄?
RT

[解决办法]
Use Windows API. See FindResource, LoadResource, LockResource.
After you call these three in sequence, you end up with the resource in a memory buffer and you have a pointer to the beginning of said buffer. You can now save it to disk file or do whatever you want.

[解决办法]
LoadBitmap, LoadImage, LoadResource
[解决办法]
LoadAccelerators Loads an accelerator table DestroyAcceleratorTable
LoadBitmap Loads a bitmap resource DeleteObject
LoadCursor Loads a cursor resource DestroyCursor
LoadIcon Loads an icon resource DestroyIcon
LoadMenu Loads a menu resource DestroyMenu
LoadString Loads a string resource No action needed

[解决办法]
http://topic.csdn.net/t/20030718/09/2042532.html
[解决办法]
http://www.21cnvip.net/TopicView/list5472860.html

读书人网 >VC

热点推荐