网站首页  词典首页

请输入您要查询的函数:

 

术语 getclientrect
释义 GetClientRect
语法:
BOOL GetClientRect( HWND hWnd,
LPRECT lpRect
);
GetClientRect函数
该GetClientRect函数检索一个窗口的客户区坐标。客户端坐标指定左上角和低客户区的右下角。由于客户坐标是相对于左上角的一个窗口的客户区的角落,坐标)的左上角为(0,0。
参数
hWnd
[in]句柄窗口的客户坐标是要检索。
lpRect
[out]指向一个RECT结构,它接收客户端的坐标。左和高层人士均为零。右侧和底部成员包含的宽度和窗口的高度。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
为求与RECT结构,右下角返回的矩形坐标公约的一致性是独有的。换句话说,在(右,下)像素是立即外矩形。
例如
例如,见创建,枚举和浆纱子窗口。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
视窗概述,GetWindowRect,RECT
==英文原文==GetClientRect Function
The GetClientRect function retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).
Syntax
BOOL GetClientRect( HWND hWnd,
LPRECT lpRect
);
Parameters
hWnd
[in] Handle to the window whose client coordinates are to be retrieved.
lpRect
[out] Pointer to a RECT structure that receives the client coordinates. The left and top members are zero. The right and bottom members contain the width and height of the window.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
In conformance with conventions for the RECT structure, the bottom-right coordinates of the returned rectangle are exclusive. In other words, the pixel at (right, bottom) lies immediately outside the rectangle.
Example
For example, see Creating, Enumerating, and Sizing Child Windows .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Windows Overview , GetWindowRect , RECT
==原始网址==http://msdn.microsoft.com/en-us/library/ms633503(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 更新时间:2025/1/8 10:55:40