CODGlobal::GetControlPoint
Retrieves one of the control points of a rectangle. There are eight control points around the perimeter and one in the center of the rectangle.
Defined in: OdGlobal.cpp
Syntax
void CODGlobal::GetControlPoint(CRect& rcBounds, OD_CONTROL_POINT nControlPoint, float& fControlX, float& fControlY)CPoint CODGlobal::GetControlPoint(CRect& rcBounds, OD_CONTROL_POINT nControlPoint)
Return Value
Either void, or a CPoint with the control point values.
Parameters
rcBounds
The rectangle to base the control point calculation on.
nControlPoint
The control point to retrieve.
OD_TOP_LEFT
Top-left control point.
OD_TOP_CENTER
Top-center control point.
OD_TOP_RIGHT
Top-right control point.
OD_CENTER_LEFT
Center-left control point.
OD_CENTER
Center control point.
OD_CENTER_RIGHT
Center-right control point.
OD_BOTTOM_LEFT
Bottom-left control point.
OD_BOTTOM_CENTER
Bottom-center control point.
OD_BOTTOM_RIGHT
Bottom-right control point.
fControlX
The horizontal coordinate of the conrtol point.
fControlY
The vertical coordinate of the control point.