Window.wndProc

Overview | Methods | This Package | All Packages

Window.wndProc

Specifies the window procedure for the Window object.

Syntax

protected void wndProc( Message m )

Parameters

m

The Message object associated with the current Windows message.

Remarks

This method is invoked when a window message is sent to the window handle. If you are subclassing the Window class, you can override this method to implement specific message processing. The Message object contains the window handle (hWnd), the window message (msg), and the two message parameters (wParam and lParam). The window procedure result is set by modifying the result field in the Message object. The default result is zero. When overriding wndProc, always call super.wndProc for any unhandled messages.

See Also    Message