If I have a CImageList object (a simple wrapper around a HIMAGELIST), and I call:
m_pImageList->Replace(...);
http://msdn.microsoft.com/en-us/library/k10cwcdb.aspx
Who is responsible for clearing up the memory? Does the image list create a copy of any bitmap I pass in (i.e. can I create a CBitmap object on the stack then pass the address of this to the function)? Or must I create it on the heap and remember to manually free all the memory when the image list is destroyed?
MSDN isn't very clear on the subject of who's responsible.