CODComponent::GetControlPoint

Retrieves one of the control points of a component. There are eight control points around the perimeter and one in the center of the component.

Defined in: OdComponent.cpp

Syntax

void CODComponent::GetControlPoint(OD_CONTROL_POINT nControlPoint, float& fControlX, float& fControlY)

CPoint CODComponent::GetControlPoint(OD_CONTROL_POINT nControlPoint)

Return Value

Either void, or a CPoint with the control point values.

Parameters

nControlPoint

The control point to retrieve.

fControlX

The horizontal coordinate of the conrtol point.

fControlY

The vertical coordinate of the control point.

GetBaseRgn

The type of control point requested. Can be one of the following:

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.