Share via


ON_PROPNOTIFY_RANGE

Use the ON_PROPNOTIFY_RANGE macro to define an event sink map entry for handling property notifications from any OLE control having a control ID within a contiguous range of IDs.

ON_PROPNOTIFY_RANGE(theClass, idFirst, idLast, dispid, pfnRequest, pfnChanged )

Parameters

  • theClass
    The class to which this event sink map belongs.

  • idFirst
    The control ID of the first OLE control in the range.

  • idLast
    The control ID of the last OLE control in the range.

  • dispid
    The dispatch ID of the property involved in the notification.

  • pfnRequest
    Pointer to a member function that handles the OnRequestEdit notification for this property. This function should have a BOOL return type and UINT and BOOL* parameters. The function should set the parameter to TRUE to allow the property to change and FALSE to disallow. The function should return TRUE to indicate that notification was handled; otherwise FALSE.

  • pfnChanged
    Pointer to a member function that handles the OnChanged notification for this property. The function should have a BOOL return type and a UINT parameter. The function should return TRUE to indicate that notification was handled; otherwise FALSE.

Requirements

Header: afxdisp.h

See Also

Reference

ON_EVENT_RANGE

ON_PROPNOTIFY

ON_EVENT

Concepts

MFC Macros and Globals