DelegatesEnumMonitorProc Delegate

An application-defined callback function that is called by the EnumDisplayMonitors(IntPtr, IntPtr, DelegatesEnumMonitorProc, IntPtr) function.

Definition

Namespace: DevCase.Win32.Delegates
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public delegate bool EnumMonitorProc(
	IntPtr hMonitor,
	IntPtr hdcMonitor,
	ref NativeRectangle refMonitorRect,
	IntPtr data
)

Parameters

hMonitor  IntPtr
A handle to the display monitor. This value will always be non-NULL.
hdcMonitor  IntPtr
A handle to a device context.

The device context has color attributes that are appropriate for the display monitor identified by hMonitor.

The clipping area of the device context is set to the intersection of the visible region of the device context identified by the hdc parameter of EnumDisplayMonitors(IntPtr, IntPtr, DelegatesEnumMonitorProc, IntPtr), the rectangle pointed to by the lprcClip parameter of EnumDisplayMonitors(IntPtr, IntPtr, DelegatesEnumMonitorProc, IntPtr), and the display monitor rectangle.

This value is Zero if the hdc parameter of EnumDisplayMonitors(IntPtr, IntPtr, DelegatesEnumMonitorProc, IntPtr) was Zero.

refMonitorRect  NativeRectangle
A pointer to a NativeRectangle structure.

If hdcMonitor is not Zero, this rectangle is the intersection of the clipping area of the device context identified by hdcMonitor and the display monitor rectangle.

The rectangle coordinates are device-context coordinates.

If hdcMonitor is Zero, this rectangle is the display monitor rectangle.

The rectangle coordinates are virtual-screen coordinates.

data  IntPtr
Application-defined data that EnumDisplayMonitors(IntPtr, IntPtr, DelegatesEnumMonitorProc, IntPtr) passes directly to the enumeration function.

Return Value

Boolean
To continue enumeration, the callback function must return ; to stop enumeration, it must return .

Remarks

See Also