术语 | 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 |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。