FORWARD_WM_NOTIFY macro
Sends or posts the WM_NOTIFY message.
Syntax
VOID FORWARD_WM_NOTIFY(
HWND hwnd,
int idFrom,
NMHDR *pnmhdr,
function fn
);
Parameters
- hwnd
-
Type: HWND
A handle to the window that receives the WM_NOTIFY message.
- idFrom
-
Type: int
The identifier of the control sending the message.
- pnmhdr
-
Type: NMHDR*
A pointer to an NMHDR structure that contains the notification code and additional information. For some notification codes, this parameter points to a larger structure that has the NMHDR structure as its first member.
- fn
-
Type: function
The function that sends or posts the WM_NOTIFY message. This parameter can be either the SendMessage or PostMessage function.
Return value
Returns a value whose meaning depends on the fn parameter.
Remarks
The FORWARD_WM_NOTIFY macro is defined as follows.
#define FORWARD_WM_NOTIFY(hwnd, idFrom, pnmhdr, fn) \
(void)(fn)((hwnd), WM_NOTIFY, (WPARAM)(int)(id), \
(LPARAM)(NMHDR*)(pnmhdr))
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|