Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

To enumerate the screens that intersect a clipping region, call the EnumDisplayMonitorsfunction. This function returns the HMONITORhandle for each screen, which you can use when calling the GetMonitorInfofunction.

To enumerate all the screens covered by the virtual screen, call EnumDisplayMonitorswith the hdcand lprcClipparameters set to NULL. The following code example shows how to enumerate all the screens covered by the virtual screen.

Copy Code
EnumDisplayMonitors(NULL, NULL, MyInfoEnumProc, 0);