导航:  CWindow Class > Methods and Properties >

GetWindowRect

上一页返回章节概述下一页

描述

 

返回主窗口的边框缩放尺寸.屏幕坐标中的尺寸与屏幕的左上角相对应.

 

FreeBASIC 语法

 

SUB GetWindowRect OVERLOAD (BYVAL lpRect AS LPRECT)

FUNCTION GetWindowRect OVERLOAD () AS RECT

 

参数

 

lpRect

[in]指向RECT结构接收窗口的左上角和右下角的屏幕坐标.

 

备注

 

在符合公约的RECT结构,右下角的坐标返回的矩形是唯一的.换句话说,在(右,底部)的像素立即位于矩形之外.

 

用法示例

 

DIM rc AS RECT

pWindow.GetWindowRect(@rc)

 

DIM rc AS RECT = pWindow.GetWindowRect

 

引用文件

 

CWindow.inc