DelegatesEnumMonitorProc Delegate
Namespace: DevCase.Win32.DelegatesAssembly: 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
)
Public Delegate Function EnumMonitorProc (
hMonitor As IntPtr,
hdcMonitor As IntPtr,
ByRef refMonitorRect As NativeRectangle,
data As IntPtr
) As Boolean
Dim instance As New EnumMonitorProc(AddressOf HandlerMethod)
public delegate bool EnumMonitorProc(
IntPtr hMonitor,
IntPtr hdcMonitor,
NativeRectangle% refMonitorRect,
IntPtr data
)
type EnumMonitorProc =
delegate of
hMonitor : IntPtr *
hdcMonitor : IntPtr *
refMonitorRect : NativeRectangle byref *
data : IntPtr -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
To continue enumeration, the callback function must return
;
to stop enumeration, it must return
.