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