OffsetViewportOrgEx (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function modifies the viewport origin for a device context using the specified horizontal and vertical offsets.

OffsetViewportOrgEx(
  HDC hdc, 
  int nXOffset,
  int nYOffset,
  LPPOINT lpPoint
);

Parameters

hdc
[in] Handle to the device context.
nXOffset
[in] Specifies the horizontal offset, in device units.
nYOffset
[in] Specifies the vertical offset, in device units.
lpPoint
[out] Pointer to a POINT structure. The previous viewport origin, in device units, is placed in this structure. If lpPoint is NULL, the previous viewport origin is not returned.

Return Values

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Remarks

The new origin is the sum of the current origin and the horizontal and vertical offsets.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

POINT | GDI Functions


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show: