HANDLE_WM_NOTIFY macro (commctrl.h)

Calls a function that processes the WM_NOTIFY message.

Syntax

void HANDLE_WM_NOTIFY(
   hwnd,
   wParam,
   lParam,
   fn
);

Parameters

hwnd

Type: HWND

A handle to the window that received WM_NOTIFY.

wParam

Type: WPARAM

The first parameter of WM_NOTIFY.

lParam

Type: LPARAM

The second parameter of WM_NOTIFY.

fn

Type: function

The function that is to process WM_NOTIFY.

Return value

None

Remarks

The HANDLE_WM_NOTIFY macro is defined as follows.

#define HANDLE_WM_NOTIFY(hwnd, wParam, lParam, fn) \ 

    (fn)((hwnd), (int)(wParam), (NMHDR*)(lParam))

The macro can be used inside a dialog window procedure to simplify the calling of an application-defined function that requires an NMHDR parameter.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h