网站首页  计算机词典

请输入您要查询的字词:

 

字词 monitorfromrect
释义 MonitorFromRect
语法:
HMONITOR MonitorFromRect(
__in LPCRECT lprc,
__in DWORD dwFlags
);
MonitorFromRect功能
该MonitorFromRect函数检索的句柄显示屏,这点与指定矩形的面积最大的交集。
参数
利比里亚炼油公司 [in]
一个RECT结构,指定的虚拟屏幕利益矩形指针坐标。
dwFlags [in]
确定函数的返回值,如果不相交的矩形任何显示屏。
此参数可以是下列值之一。
ValueMeaning
MONITOR_DEFAULTTONEARESTReturns的句柄显示屏是最接近矩形。
MONITOR_DEFAULTTONULLReturns空。
MONITOR_DEFAULTTOPRIMARYReturns的句柄主显示屏。
返回值
如果矩形相交的一个或多个显示屏矩形,返回值是一个HMONITOR句柄显示屏,这点与矩形的面积最大的交集。
如果矩形不相交一显示屏,返回值取决于dwFlags价值。
实例
有关示例,请参见定位在一个多显示设置对象。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
多显示监视器概述
多显示监视器功能
MonitorFromPoint
MonitorFromWindow
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==MonitorFromRect Function
The MonitorFromRect function retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle.
Syntax
HMONITOR MonitorFromRect(
__in LPCRECT lprc,
__in DWORD dwFlags
);
Parameters
lprc [in]
A pointer to a RECT structure that specifies the rectangle of interest in virtual-screen coordinates.
dwFlags [in]
Determines the function's return value if the rectangle does not intersect any display monitor.
This parameter can be one of the following values.
ValueMeaning
MONITOR_DEFAULTTONEARESTReturns a handle to the display monitor that is nearest to the rectangle.
MONITOR_DEFAULTTONULLReturns NULL.
MONITOR_DEFAULTTOPRIMARYReturns a handle to the primary display monitor.

Return Value
If the rectangle intersects one or more display monitor rectangles, the return value is an HMONITOR handle to the display monitor that has the largest area of intersection with the rectangle.
If the rectangle does not intersect a display monitor, the return value depends on the value of dwFlags.
Examples
For an example, see Positioning Objects on a Multiple Display Setup .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
Multiple Display Monitors Overview
Multiple Display Monitors Functions
MonitorFromPoint
MonitorFromWindow
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145063(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 21:43:39