BCGSuite for MFC
CBCGPCalculator

Detailed Description

The CBCGPCalculator class implements the functionality of an arithmetical calculator, which can be used as a standalone control or a popup control connected to another control (for example, an edit control with calculator browse button implemented by CBCGPEdit).

See the BCGPControls example for more details.

See also
CBCGPEdit

Inherits CBCGPPopupMenuBar, and CBCGPCtrlPlaceHolderHelper.

Public Member Functions

 CBCGPCalculatorThe constructor.
 
 CBCGPCalculatorThe constructor.
 
 CreateCreates the calculator pane.
 
 CreateControlCreates the calculator Windows control.
 
 EnableBorderShows or hides a border around calculator.
 
 GetValueReturns the current value.
 
 HasBorderTells whether a calculator control displays a border.
 
 RemoveAdditionalCommandsRemoves custom commands.
 
 RemoveExtendedCommandsRemoves extended commands.
 
 SetAdditionalCommandsAllows to add custom buttons to calculator.
 
 SetExtendedCommandsAllows extended commands to calculator.
 
 SetValueInitializes the calculator with a new value.
 

Protected Member Functions

 OnUserCommandCalled when the user presses a custom button.