次の方法で共有


SetWindowOrgEx (Compact 2013)

3/28/2014

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

Return Value

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

Requirements

Header

windows.h

Library

coredll.lib

See Also

Reference

GDI Functions
POINT