BCGControlBar Pro for MFC
double CBCGPWorkspace::GetSectionDouble ( LPCTSTR  lpszSubSection,
LPCTSTR  lpszEntry,
double  dblDefault = 0.0 

Retrieves the numeric data for a specified value field of a specified key.

A value's data if the function succeeded; otherwise dblDefault.

The function queries the specified by lpszEntry registry value field and returns a numerical value from this field or the value specified by dblDefault parameter.

lpszSubSectionSpecifies a relative path to the application data key.
lpszEntrySpecifies the value field to read from.
dblDefaultSpecifies the default value to be returned if the specified value field does not exist.