HANDLE_WM_NOTIFY macro
Calls a function that processes the WM_NOTIFY message.
Syntax
void HANDLE_WM_NOTIFY(
HWND hwnd,
WPARAM wParam,
LPARAM lParam,
function 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
Returns a value whose meaning depends on the fn parameter.
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
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
Show: