BCGControlBar Pro for MFC
int CBCGPWorkspace::GetSectionInt ( LPCTSTR  lpszSubSection,
LPCTSTR  lpszEntry,
int  nDefault = 0 
)

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

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

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

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