The information in this article applies to:
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.
MORE INFORMATION
In versions of MFC earlier than 4.2, MFC implements CreateDragImage as
CImageList::FromHandle. An object returned from FromHandle is temporary and
does not need to be explicitly deleted. A limitation of this implementation
is that the CImageList pointer can be safely used only in the current
message being processed.
For more information on temporary handles returned from FromHandle, see
MFC TechNote "TN003: Mapping of Windows Handles to Objects" in the
Visual C++ Books Online.
Additional query words: kbVC420bug leak
Keywords : kbdocfix kbdocerr kbMFC KbUIDesign kbVC kbVC500fix |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |