导航:  CWindow Class > Methods and Properties >

GetControlWindowRect

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

描述

 

检索指定窗口的边框缩放尺寸.屏幕坐标中的尺寸与屏幕的左上角相对应.

 

FreeBASIC 语法

 

SUB GetControlWindowRect OVERLOAD ( _

  BYVAL hwnd AS HWND, _

  BYVAL lpRect AS LPRECT _

)

 

FUNCTION GetControlWindowRect OVERLOAD ( _

  BYVAL hwnd AS HWND _

) AS RECT

 

参数

 

hwnd

[in]窗口的句柄.

lpRect

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

 

备注

 

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

 

用法示例

 

DIM rc AS RECT

pWindow.GetControlWindowRect(hCtl, @rc)

 

DIM rc AS RECT = pWindow.GetControlWindowRect(hCtl)

 

引用文件

 

CWindow.inc