网站首页  词典首页

请输入您要查询的函数:

 

术语 getwindowrect
释义 GetWindowRect
语法:
BOOL GetWindowRect( HWND hWnd,
LPRECT lpRect
);
GetWindowRect功能
该GetWindowRect函数检索对指定窗口的边界矩形的尺寸。的尺寸在屏幕给出坐标是相对于左上角的屏幕一角。
参数
hWnd
[in]的窗口句柄。
lpRect
[out]指向一个结构,它接收的屏幕坐标左上角和低窗口右侧的角落。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
为求与RECT结构,右下角返回的矩形坐标公约的一致性是独有的。换句话说,在(右,下)像素是立即外矩形。
例如
有关示例,请参阅初始化一个对话框。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
视窗概述,GetClientRect
==英文原文==GetWindowRect Function
The GetWindowRect function retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.
Syntax
BOOL GetWindowRect( HWND hWnd,
LPRECT lpRect
);
Parameters
hWnd
[in] Handle to the window.
lpRect
[out] Pointer to a structure that receives the screen coordinates of the upper-left and lower-right corners 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 an example, see Initializing a Dialog Box .
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 , GetClientRect
==原始网址==http://msdn.microsoft.com/en-us/library/ms633519(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 13:20:27