ILogCoordinatesImpl::SetVirtualSize

Sets the virtual size of the logical part.

Defined in: LogCoordinatesImpl.h

Syntax

SetVirtualSize(int cx, int cy)

SetVirtualSize(const CSize& szVirtual)

Return Value

void

Parameters

cx

The virtual width in logical units

cy

The virtual height in logical units

szVirtual

The new virtual size

Comments

This function must be overriden. It's default implementation does nothing. So, why doesn't the logical part store the virtual size and this function set 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

GetVirtualSize