BCGControlBar Pro for MFC
int CBCGPWorkspace::GetInt ( LPCTSTR  lpszEntry,
int  nDefault = 0 

Retrieves the numeric data for a specified value field.

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.

lpszEntrySpecifies the value field to read from.
nDefaultSpecifies the default value to be returned if the specified value field does not exist.