SECCalcBtnArray Class
class SECCalcBtnArray: public CObArray
SECCalcBtn is the base class for the buttons on a calculator edit control created by class SECCalculator. An associated class, Attrib, defines the attributes used for drawing a button on the calculator.
The SECCalculator class implements a calculator edit control capable of decimal arithmetic and other standard operations. The popup window for the calculator is created by the SECPopupCalculator class.
Defined in: SecCalc.h
Comments
See the sample CALC in the \SAMPLES\TOOLKIT\STANDARD\CONTROLS\CALC directory for a demonstration of this class.
Class Members
SECCalcBtn* GetAt(int nIndex) const
Returns the SECCalcBtn at the specified index.
SECCalcBtn*& ElementAt(int nIndex)
Returns a temporary reference to the SECCalcBtn pointer within the array.
void SetAt(int nIndex, SECCalcBtn* ptr)
Sets the SECCalcBtn at the specified index.
void SetAtGrow(int nIndex, SECCalcBtn* newElement)
Sets the SECCalcBtn at the specified index,
int Add(SECCalcBtn* newElement)
Adds a new SECCalcBtn to the end, growing the array by 1.
int Append(const SECCalcBtnArray& src)
Add the contents of another SECCalcBtnArray to the end of this array.
void Copy(const SECCalcBtnArray& src)
Overwrites the elements with those of another SECCalcBtnArray.
void InsertAt(int nIndex, SECCalcBtn* newElement, int nCount = 1)
Inserts a SECCalcBtn (or multiple copies of one) at a
void InsertAt(int nStartIndex, SECCalcBtnArray* pNewArray)
Inserts all the elements from another SECCalcBtnArray collection,
SECCalcBtn* operator[](int nIndex) const
Index operator.
SECCalcBtn*& operator[](int nIndex)
Index operator.