BCGControlBar Pro for MFC
BOOL CBCGPWorkspace::IsStateExists ( LPCTSTR  lpszSectionName)

Determines whether the specified state does exist or not.

Nonzero if a state exists in the registry; otherwise 0.

Use this function to determine whether a state does exist or not. It may be useful if you're working with different configurations (application layouts) loading and saving them on the fly.

lpszSectionNameSpecifies a relative path to the application data key.