CControlBar::m_bAutoDelete

If nonzero, the CControlBar object is deleted when the Windows control bar is destroyed.

BOOL m_bAutoDelete;

Remarks

m_bAutoDelete is a public variable of type BOOL.

A control-bar object is usually embedded in a frame-window object. In this case, m_bAutoDelete is 0 because the embedded control-bar object is destroyed when the frame window is destroyed.

Set this variable to a nonzero value if you allocate a CControlBar object on the heap and you do not plan to call delete.

Requirements

Header: afxext.h

See Also

Concepts

CControlBar Class

CControlBar Members

Hierarchy Chart

CWnd::DestroyWindow