Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function specifies which window point maps to the viewport origin (0,0).

Syntax

SetWindowOrgEx(
  HDC 
hdc, 
  int 
X,
  int 
Y,
  LPPOINT 
lpPoint
);

Parameters

hdc

[in] Handle to the device context.

X

[in] Specifies the x-coordinate, in logical units, of the new window origin.

Y

[in] Specifies the y-coordinate, in logical units, of the new window origin.

lpPoint

[out] Pointer to a POINTstructure that receives the previous origin of the window, in logical units. If lpPointis NULL, this parameter is not used.

Return Value

A nonzero value indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

Requirements

Header windows.h
Library coredll.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

POINT
GDI Functions