SECPopupCalculator Class

class SECPopupCalculator: public SECCalculator

The SECPopupCalculator class creates a popup window for a calculator edit control. The popup window is destroyed whenever the equals key is pressed. SECPopCalendar is derived from the SECCalculator class which implements a calculator edit control capable of decimal arithmetic and other standard operations.

Defined in: SecCalc.h

Comments

The base class of the buttons on the calculator is SECCalcBtn. The class Attrib defines the attributes used for drawing the calculator button.

See the sample CALC in the \SAMPLES\TOOLKIT\STANDARD\CONTROLS\CALC directory for a demonstration of this class.

Class Members

Creation/Initialization

SECPopupCalculator()

Creates a SECPopupCalculator object.

BOOL Create(DWORD dwStyle, const RECT& ctrlRect, CWnd* pParentWnd, CCreateContext* pContext = NULL)

Creates a popup window for the calculator and attaches it

BOOL CreateEx(DWORD dwExStyle, DWORD dwStyle, const RECT& ctrlRect, CWnd* pParentWnd, CCreateContext* pContext = NULL)

Creates a popup window with extended styles for the calculator

Attributes

virtual UINT GetClassStyle() const

Returns the class style that this window "will" be

Overridable

virtual BOOL HandleEvent(SECCalcOp op)

Called when a button is pressed on the calculator.

virtual void Notify()

Handles dispatching the result to interested windows

Public data members

BOOL m_bAutoDelete

Delete with the window.