网站首页  词典首页

请输入您要查询的函数:

 

术语 clienttoscreen
释义 ClientToScreen
语法:
BOOL ClientToScreen(
__in HWND hWnd,
__inout LPPOINT lpPoint
);
ClientToScreen函数
功能转换的ClientToScreen客户区的指定点坐标屏幕坐标。
参数
hWnd [in]
一个句柄,的客户面积为转换使用窗口。
lpPoint [ in , out ]
一个点结构,它包含了客户端指针坐标转换。新的屏幕坐标复制到这种结构如果函数成功。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
该ClientToScreen函数替换客户端区在与屏幕坐标点结构的坐标。屏幕坐标是相对于左上角的屏幕一角。请注意,屏幕坐标点以上窗口的客户区是有负面的Y坐标。同样,屏幕坐标到一个客户区左侧有负面的x坐标。
所有的坐标设备坐标。
实例
有关示例,请参见“使用鼠标画线”,在使用鼠标输入。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
坐标空间和转换概述
坐标空间与变换函数
MapWindowPoints

ScreenToClient
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ClientToScreen Function
The ClientToScreen function converts the client-area coordinates of a specified point to screen coordinates.
Syntax
BOOL ClientToScreen(
__in HWND hWnd,
__inout LPPOINT lpPoint
);
Parameters
hWnd [in]
A handle to the window whose client area is used for the conversion.
lpPoint [in, out]
A pointer to a POINT structure that contains the client coordinates to be converted. The new screen coordinates are copied into this structure if the function succeeds.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The ClientToScreen function replaces the client-area coordinates in the POINT structure with the screen coordinates. The screen coordinates are relative to the upper-left corner of the screen. Note, a screen-coordinate point that is above the window's client area has a negative y-coordinate. Similarly, a screen coordinate to the left of a client area has a negative x-coordinate.
All coordinates are device coordinates.
Examples
For an example, see "Drawing Lines with the Mouse" in Using Mouse Input .
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
MapWindowPoints
POINT
ScreenToClient
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183434(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:26:34