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 值. |
在MSDN中搜索