ILogCoordinatesImpl::GetVirtualSize

virtual CSize ILogCoordinatesImpl::GetVirtualSize(void)

Returns the size of the virtual space shown by this logical part in logical units.

Defined in: LogCoordinatesImpl.h

Return Value

CSize

Comments

This function must be overriden, because by default its return value is the same as MvcLogicalPart::GetLogSize. So, why doesn't the logical part store the virtual size and this function return said value? Because there is more then one place you may choose to store the virtual size value. For example, you could have one component which contains another. In this scenerio, the size of the contained component is the virtual size of the container. Alternatively, you may want to store the virtual size directly in the logical part itself. To accommodate both possibilities, this function is virtual and must be overriden.

See Also

SetVirtualSize