函数参考


_WinAPI_MonitorFromRect

Retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle.

#Include <WinAPIEx.au3>
_WinAPI_MonitorFromRect ( $tRECT [, $iFlag] )

参数

$tRECT $tagRECT structure that specifies the rectangle of interest in virtual-screen coordinates.
$iFlag [可选参数] The flag that specifies the function's return value if the rectangle does not intersect any display
monitor. This parameter can be one of the following values.

$MONITOR_DEFAULTTONEAREST
$MONITOR_DEFAULTTONULL
$MONITOR_DEFAULTTOPRIMARY

返回值

Success The handle to the monitor that has the largest area of intersection with the rectangle,
or the value depends on the $MONITOR_* constant.
失败: 返回 0 并设置 @error 标志为非 0 值.

注意/说明

None

相关

详情参考

在MSDN中搜索