windows_programming_notes.nbk: Home | Index | Next Page: windows | Previous Page: window startup


 WindowProc

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

Return Value

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

Function Information

Header Declared in Winuser.h, include Windows.h


windows_programming_notes.nbk: Home | Index | Next Page: windows | Previous Page: window startup


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time