Contents Index Topic Contents | ||
Previous Topic: Common Control Utility Macros Next Topic: HANDLE_WM_NOTIFY |
FORWARD_WM_NOTIFY
VOID FORWARD_WM_NOTIFY( hwnd, idFrom, pnmhdr, fn );Sends or posts the WM_NOTIFY message.
- Returns a value whose meaning depends on the fn parameter.
- hwnd
- Handle to the window that receives the WM_NOTIFY message.
- idFrom
- Identifier of the control sending the message.
- pnmhdr
- Address of an NMHDR structure that contains the notification code and additional information. For some notification messages, this parameter points to a larger structure that has the NMHDR structure as its first member.
- fn
- Function that sends or posts the WM_NOTIFY message. This parameter can be either the SendMessage or PostMessage function.
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 FAR*)(pnmhdr))
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.