BCGControlBar Pro for MFC
BOOL CBCGPWorkspace::LoadState ( CBCGPOleIPFrameWnd pFrame,
LPCTSTR  lpszSectionName = NULL 

Loads the application state from the Windows registry.

Nonzero if the application state was loaded successfully; otherwise 0.

The MFC framework calls LoadFrame when it creates a frame window using a document template object.

lpszSectionNameSpecifies a relative path to the application data key.
pFrameA pointer to a frame window.