Share via


Gdi::SetViewportOrgEx_I (Windows Embedded CE 6.0)

1/6/2010

This method sets the viewpoint origin of a device context to the specified coordinates.

Syntax

static WINGDIAPI BOOL WINAPI SetViewportOrgEx_I(
  HDC hdc,
  int nXOrg,
  int nYOrg,
  POINT* lppt
);

Parameters

  • hdc
    [in] Handle to the device context.
  • nXOrg
    [in] Integer that specifies the x-coordinate, in device units, of the new viewport origin.
  • nYOrg
    [in] Integer that specifies the y-coordinate, in device units, of the new viewport origin.
  • lppt
    [in] Long pointer to a POINT structure.

    The previous viewport origin, in device coordinates, is placed in this structure.

    If lpPoint is NULL, nothing is returned.

Return Value

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Remarks

This method is an internal version of the SetViewportOrgEx function.

Requirements

Header gdi.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Gdi
SetViewportOrgEx
POINT