CMvcLogicalPart::Pan
CRect CMvcLogicalPart::Pan(int xOff, int yOff)
Moves the logical rect by the specified deltas
Defined in: MvcLogicalPart.h
Return Value
The logical rectangle after the translation
Parameters
xOff
The offset in the X direction in logical units
yOff
The offset in the Y direction in logical units
Comments
Moves the logical rectangle which defines what is display within the
logical part by the specified offsets. In effect, panning is equivalent
to scrolling the contents of the logical part. Pan also takes care to
insure that it doesn't scroll outside the virtual logical space. In
other words, the resultant logical rect is bounded by the virtual
size (esp. useful for scrolling). If, for some reason, you need to
scroll outside the virtual space, you can use
SetLogOrigin or OffsetLogOrigin.
See Also
SetLogOrigin