GweBypassCoredllThunk_t::ScreenToClient_I (Windows CE 5.0)

Send Feedback

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

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 Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: GweBypassCoredllThunk.hpp.

See Also

MapWindowPoints | ScreenToClient | GweBypassCoredllThunk_t::ClientToScreen_I | POINT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.