次の方法で共有


GweBypassCoredllThunk_t::ScreenToClient_I (Windows Embedded CE 6.0)

1/6/2010

This method converts the screen coordinates of a specified point on the screen to client coordinates.

Syntax

static BOOL WINAPI ScreenToClient_I(
  HWND hwndThis,
  POINT* pPoint
);

Parameters

  • hwndThis
    [in] Handle to the window that contains the client area to be used for the conversion.
  • pPoint
    [in] Long pointer to a POINT structure that contains the screen coordinates to be converted.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

This method is an internal version of the ScreenToClient function.

The method uses the window identified by the hWnd parameter and the screen coordinates given in the POINT structure to compute client coordinates. The method then replaces the screen coordinates with the client coordinates. The new coordinates are relative to the upper-left corner of the client area of the specified window.

The GweBypassCoredllThunk_t::ScreenToClient_I method assumes the specified point is in screen coordinates.

Requirements

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

See Also

Reference

GweBypassCoredllThunk_t
MapWindowPoints
ScreenToClient
GweBypassCoredllThunk_t::ClientToScreen_I
POINT