BCGControlBar Pro for MFC
BOOL CBCGPRegistry::m_bAutoCloseKey
static

Specifies whether a previous registry key should be automatically closed

Set it to TRUE to close the previous key in CBCGPRegistry::CreateKey and CBCGPRegistry::Open.