CMvcVisualComponent::SetOrigin

Set the origin of this component relative to its container and in the container's units

Defined in: MvcVisualComponent.h

Syntax

SetOrigin(int x, int y)

SetOrigin(const CPoint& point)

Return Value

CPoint The previous origin

Parameters

x

y

Comments

Call this function to set or move a component's origin in the parent's terms. In other words, a visual component may be contained by another visual component that has its own coordinate system and logical to pixel unit mapping. With or without logical to device unit scaling, the position of this visual component is in logical units as defined by its parent.

See Also

GetOrigin