网站首页  词典首页

请输入您要查询的函数:

 

术语 screentoclient
释义 ScreenToClient
语法:
BOOL ScreenToClient(
__in HWND hWnd,
LPPOINT lpPoint
);
ScreenToClient函数
该ScreenToClient函数将屏幕上的指定点坐标为客户端屏幕面积坐标。
参数
hWnd [in]
一个句柄,的客户区将转换使用的窗口。
lpPoint
一个点结构的指针指定屏幕坐标转换。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
该函数使用的hWnd参数确定的窗口和屏幕坐标的POINT结构计算给予客户坐标。然后,它取代了屏幕坐标与客户坐标。新的坐标是相对于左上角指定窗口的客户区角落。
该ScreenToClient函数假定指定点在屏幕坐标。
所有的设备坐标单位。
不要使用ScreenToClient在镜像时的情况,即,当左转变到右布局,从右到左的布局。相反,使用MapWindowPoints。有关更多信息,请参阅“窗口布局和镜像”,在窗口功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
坐标空间和转换概述
坐标空间与变换函数
ClientToScreen
MapWindowPoints

如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ScreenToClient Function
The ScreenToClient function converts the screen coordinates of a specified point on the screen to client-area coordinates.
Syntax
BOOL ScreenToClient(
__in HWND hWnd,
LPPOINT lpPoint
);
Parameters
hWnd [in]
A handle to the window whose client area will be used for the conversion.
lpPoint
A pointer to a POINT structure that specifies the screen coordinates to be converted.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The function uses the window identified by the hWnd parameter and the screen coordinates given in the POINT structure to compute client coordinates. It then replaces the screen coordinates with the client coordinates. The new coordinates are relative to the upper-left corner of the specified window's client area.
The ScreenToClient function assumes the specified point is in screen coordinates.
All coordinates are in device units.
Do not use ScreenToClient when in a mirroring situation, that is, when changing from left-to-right layout to right-to-left layout. Instead, use MapWindowPoints . For more information, see "Window Layout and Mirroring" in Window Features .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
Coordinate Spaces and Transformations Overview
Coordinate Space and Transformation Functions
ClientToScreen
MapWindowPoints
POINT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162952(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:25:00