术语 | monitorfromwindow |
释义 | MonitorFromWindow 语法: HMONITOR MonitorFromWindow( __in HWND hwnd, __in DWORD dwFlags ); MonitorFromWindow功能 该MonitorFromWindow函数检索的句柄显示屏,这点与一个指定窗口的边界矩形的面积最大的交集。 参数 hwnd [in] 句柄的利息窗口。 dwFlags [in] 确定函数的返回值,如果窗口不相交的显示屏。 此参数可以是下列值之一。 ValueMeaning MONITOR_DEFAULTTONEARESTReturns的句柄显示屏是最接近窗口。 MONITOR_DEFAULTTONULLReturns空。 MONITOR_DEFAULTTOPRIMARYReturns的句柄主显示屏。 返回值 如果窗口相交的一个或多个显示屏矩形,返回值是一个HMONITOR句柄显示屏,这点与窗口的面积最大的交集。 如果窗口不相交一显示屏,返回值取决于dwFlags价值。 备注 如果当前窗口最小化,MonitorFromWindow使用窗口的矩形前减少到最低限度。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinuser.h(头文件:winuser.h) LibraryUser32.lib DLLUser32.dll 参见 多显示监视器概述 多显示监视器功能 MonitorFromPoint MonitorFromRect 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==MonitorFromWindow Function The MonitorFromWindow function retrieves a handle to the display monitor that has the largest area of intersection with the bounding rectangle of a specified window. Syntax HMONITOR MonitorFromWindow( __in HWND hwnd, __in DWORD dwFlags ); Parameters hwnd [in] A handle to the window of interest. dwFlags [in] Determines the function's return value if the window 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 window. MONITOR_DEFAULTTONULLReturns NULL. MONITOR_DEFAULTTOPRIMARYReturns a handle to the primary display monitor. Return Value If the window 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 window. If the window does not intersect a display monitor, the return value depends on the value of dwFlags. Remarks If the window is currently minimized, MonitorFromWindow uses the rectangle of the window before it was minimized. 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 MonitorFromRect Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd145064(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。