Export (0) Print
Expand All

NativeWindow.DefWndProc Method

Invokes the default window procedure associated with this window. It is an error to call this method when the Handle property is 0.

[Visual Basic]
Public Sub DefWndProc( _
   ByRef m As Message _
)
[C#]
public void DefWndProc(
   ref Message m
);
[C++]
public: void DefWndProc(
 Message* m
);
[JScript]
public function DefWndProc(
   m : Message
);

Parameters

m
The message that is currently being processed.

Remarks

Typically, you only call the DefWndProc method when you are intercepting window messages and would like the default window procedure to handle the message. DefWndProc should not be called to send a window message to the window; call the Win32 SendMessage API instead.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

NativeWindow Class | NativeWindow Members | System.Windows.Forms Namespace

Show:
© 2014 Microsoft