Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>defwindowproc()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DefWindowProc()
Pass a message to the default window procedure
------------------------------------------------------------------------------

Syntax
DefWindowProc( <hWnd>, <nMsg>, <nwParam>, <nlParam> )   -->   nResult

Arguments
<hWnd> is the handle to the window.

<nMsg> is the message (one of the WM_* values defined in
WINDOWS.CH).

<nwParam> depends on <nMsg>.

<nlParam> depends on <nMsg>.

Returns
A numeric value, returned by the default window procedure.

Description
This is the "traditional" way to program Windows applications.
It is allowed (but not required) with Clip-4-Win, but is not
necessarily the easiest way to program.

To use a window procedure, you register a window class with a
code block to act as a window procedure.  When you create a
window and subsequently get sent messages, you can use this
function to pass unwanted messages along to the default window
procedure.

Example
See source\odraw.prg.

See Also: RegisterClass() CreateWindow() DefFrameProc() DefMDIChildProc()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson