<< Return to Main Index

< Return to Class Index

CGXControl::AddBorders

virtual CSize AddBorders(CSize size, const CGXStyle& style);

size

Size of the interior rectangle of the cell. For example, for a combo box, the interior rectangle is the rectangle where the display text is drawn (without pushbutton).

style

Const reference to the style object for the cell.

Remarks

Adds space reserved for margins and borders to the size of the cell rectangle, e.g., with a combo box it adds space for drawing the pushbutton. AddBorders will be called from CalcSize.

Note: Call CGXControl::AddBorders if you override this method!

See Also

CGXControl::CalcSize CGXControl::GetCellRect

CGXControl

Class Overview | Class Members