CODComponent::ValidatePosition
CPointCODComponent::ValidatePosition(const CRect&rcIn)
Determines if the position of the given bounding rectangle is valid.
Defined in: OdComponent.cpp
Return Value
A corrected origin point.
Parameters
rcIn
The desired bounding rectangle for the component in logical units.
Comments
If the position of the rectangle passed in is valid, then the
top-left point of the rectangle is returned to the caller. If the position
is not valid, then this function calculates the closest valid origin for
the component and returns it to the caller. This function is overridden by
derived classes to add constraints on the movement of a component. The
base class implementation does no validation and always returns the
top-left point of the input rectangle.