首页 > 其他 > 详细

loadicon后一定要调用destroyicon吗

时间:2015-03-24 21:06:47      阅读:230      评论:0      收藏:0      [点我收藏+]

Remarks

 

It is only necessary to call DestroyIcon for icons and cursors created with the following functions: CreateIconFromResourceEx (if called without the LR_SHARED flag), CreateIconIndirect, and CopyIcon. Do not use this function to destroy a shared icon. A shared icon is valid as long as the module from which it was loaded remains in memory. The following functions obtain a shared icon. 

 

 

LoadIcon

LoadImage (if you use the LR_SHARED flag) 

CopyImage (if you use the LR_COPYRETURNORG flag and the hImage parameter is a shared icon) 

CreateIconFromResource

CreateIconFromResourceEx (if you use the LR_SHARED flag)

loadicon后一定要调用destroyicon吗

原文:http://www.cnblogs.com/time-is-life/p/4363713.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!