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 _
public void DefWndProc(
   ref Message m
public: void DefWndProc(
 Message* m
public function DefWndProc(
   m : Message


The message that is currently being processed.


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.


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

© 2014 Microsoft