[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SetWindowOrigin( hDC, nCol, nRow )-> <aPrevOrigin>
------------------------------------------------------------------------------
PARAMETER:
<hDC> Identifies the device context.
<nCol>,<nRow> Are the top/left coordinates of the window
RETURNS:
<aPrevOrigin> is an array with the previous origin values { nCol, nRow }
DESCRIPTION:
SetWindowOrigin() sets the window origin for the given device context. The
window origin is the origin of the logical coordinate system for a window.
By changing the window origin, an application can change the way the
graphics device interface (GDI) converts logical coordinates to device
coordinates (the viewport).
GDI converts logical coordinates to the device coordinates of the viewport
in the same way as it converts the origin.
To convert points to the right, an application can specify a negative
value for the nCol parameter.
Similarly, to convert points down (in the MM_TEXT mapping mode), <nRow> can
be negative.
SOURCE:
SOURCE\WINAPI\WNDCENTE.C
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson