DOC: CImageList Returned from CreateDragImage Needs Delete (155436)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Learning Edition 4.2
This article was previously published under Q155436 SUMMARY
The CTreeCtrl::CreateDragImage and CListCtrl::CreateDragImage functions in
versions of MFC earlier than 4.2 return a pointer to a temporary CImageList
object. In MFC version 4.2, CreateDragImage returns a permanent object that
must be explicitly deleted.
The documentation for CreateDragImage does not state this.
This documentation error was fixed in Visual C++ version 5.0.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbBug kbdocerr kbdocfix kbfix KbUIDesign kbVC500fix KB155436 |
---|
|