BCGControlBar Pro for MFC
BOOL CBCGPWorkspace::WriteSectionObject ( LPCTSTR  lpszSubSection,
LPCTSTR  lpszEntry,
CObject &  obj 
)

Stores CObject - derived object data in a specified value field of a specified key.

Returns
If successful, returns nonzero; otherwise 0.
Parameters
lpszSubSectionSpecifies the name of a key.
lpszEntrySpecifies the value field to be set. If a value field with this name does not already exist in the key, it is added.
objSpecifies the data to be stored.