Share via


WindowProc (Compact 2013)

3/28/2014

This function is an application-defined callback function that processes messages sent to a window.

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.

Requirements

Header

winuser.h

See Also

Reference

Window Functions
CallWindowProc
DefWindowProc
RegisterClass