Partager via


FORWARD_WM_NOTIFY

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This macro sends or posts the WM_NOTIFY message.

Syntax

VOID FORWARD_WM_NOTIFY( 
    hwnd, 
    idFrom, 
    pnmhdr, 
    fn 
); 

Parameters

  • hwnd
    Handle to the window that receives the WM_NOTIFY message.
  • idFrom
    Identifier of the control sending the message.
  • pnmhdr
    Pointer to an NMHDR structure that contains the notification code and additional information. For some 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. It can be either the SendMessage or PostMessage function.

Return Value

The meaning of the value 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 FAR*)(pnmhdr)) 

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Common Control Macros
NMHDR
PostMessage
SendMessage
WM_NOTIFY