Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windowing
Window Procedures
Functions
 WindowProc Function
WindowProc Function

The WindowProc function is an application-defined function that processes messages sent to a window. The WNDPROC type defines a pointer to this callback function. WindowProc is a placeholder for the application-defined function name.

Syntax

LRESULT CALLBACK WindowProc(      
    HWND hwnd,     UINT uMsg,     WPARAM wParam,     LPARAM lParam );

Parameters

hwnd
[in] Handle to the window.
uMsg
[in] Specifies the message.
wParam
[in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.
lParam
[in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.

Return Value

The return value is the result of the message processing and depends on the message sent.


Function Information

HeaderDeclared in Winuser.h, include Windows.h
Import libraryNone
Minimum operating systems Windows 95, Windows NT 3.1

See Also

Window Procedures Overview, CallWindowProc, DefWindowProc, RegisterClass
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker