Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.06 KB

destroying-the-list-control.md

File metadata and controls

19 lines (14 loc) · 1.06 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Destroying the List Control
Destroying the List Control
11/04/2016
list controls [MFC], destroying
CListCtrl class [MFC], destroying controls
513ec820-3a02-49d2-b073-a6a7a3fc91b3

Destroying the List Control

If you embed your CListCtrl object as a data member of a view or dialog class, it is destroyed when its owner is destroyed. If you use a CListView, the framework destroys the control when it destroys the view.

If you arrange for some of your list data to be stored in the application rather than the list control, you will need to arrange for its deallocation. For more information, see Callback Items and the Callback Mask in the Windows SDK.

In addition, you are responsible for deallocating any image lists you created and associated with the list control object.

See also

Using CListCtrl
Controls