Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SetWindowOrgEx

Windows Mobile 6.5
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).


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

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 POINT structure that receives the previous origin of the window, in logical units. If lpPoint is NULL, this parameter is not used.

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

Headerwindows.h
Librarycoredll.lib
Windows Embedded CEWindows CE 5.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft