I have a question:
Loading a Bitmap and then later destroying it by using DeleteObject is very straightforward.
What confuses me is destroying icons. The API docs say that you only use DestroyIcon for icons created with CreateIcon or CreateIconIndirect.
While I can understand that an icon loaded from a resource probably shouldn't be destroyed at any time (in your app), how about icons that are loaded through LoadIcon or LoadImage which come from a disk file ?
Can (and should) an icon loaded from a disk file be destroyed using Destroyicon ?
Loading a Bitmap and then later destroying it by using DeleteObject is very straightforward.
What confuses me is destroying icons. The API docs say that you only use DestroyIcon for icons created with CreateIcon or CreateIconIndirect.
While I can understand that an icon loaded from a resource probably shouldn't be destroyed at any time (in your app), how about icons that are loaded through LoadIcon or LoadImage which come from a disk file ?
Can (and should) an icon loaded from a disk file be destroyed using Destroyicon ?
Comment