User32DefFrameProc Method
Provides default processing for any window messages that the window procedure of a
multiple-document interface (MDI) frame window does not process.
All window messages that are not explicitly processed by the window procedure must be
passed to the
DefFrameProc(IntPtr, IntPtr, UInt32, IntPtr, IntPtr) function,
not the
DefWindowProc(IntPtr, UInt32, IntPtr, IntPtr) function.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
public static IntPtr DefFrameProc(
IntPtr hWnd,
IntPtr hWndMDIClient,
uint msg,
IntPtr wParam,
IntPtr lParam
)
<DllImportAttribute("User32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Function DefFrameProc (
hWnd As IntPtr,
hWndMDIClient As IntPtr,
msg As UInteger,
wParam As IntPtr,
lParam As IntPtr
) As IntPtr
Dim hWnd As IntPtr
Dim hWndMDIClient As IntPtr
Dim msg As UInteger
Dim wParam As IntPtr
Dim lParam As IntPtr
Dim returnValue As IntPtr
returnValue = User32.DefFrameProc(hWnd,
hWndMDIClient, msg, wParam, lParam)
public:
[DllImportAttribute(L"User32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static IntPtr DefFrameProc(
IntPtr hWnd,
IntPtr hWndMDIClient,
unsigned int msg,
IntPtr wParam,
IntPtr lParam
)
[<DllImportAttribute("User32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member DefFrameProc :
hWnd : IntPtr *
hWndMDIClient : IntPtr *
msg : uint32 *
wParam : IntPtr *
lParam : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the MDI frame window.
- hWndMDIClient IntPtr
-
A handle to the MDI client window.
- msg UInt32
-
The message to be processed.
- wParam IntPtr
-
Additional message information. The content of this parameter depends on the value of the msg parameter.
- lParam IntPtr
-
Additional message information. The content of this parameter depends on the value of the msg parameter.
IntPtr
The return value specifies the result of the message processing and depends on the message.
If the
hWndMDIClient parameter is
Zero,
the return value is the same as for the
DefWindowProc(IntPtr, UInt32, IntPtr, IntPtr) function.