다음을 통해 공유


ON_PROPNOTIFY

Use the ON_PROPNOTIFY macro to define an event sink map entry for handling property notifications from an OLE control.

ON_PROPNOTIFY(theClass, id, dispid, pfnRequest, pfnChanged )

매개 변수

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

  • id
    The control ID of the OLE control.

  • 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 a BOOL* parameter. This function should set the parameter to TRUE to allow the property to change and FALSE to disallow. The function should return TRUE to indicate the 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.

설명

The vtsParams argument is a space-separated list of values from the VTS_ constants. One or more of these values separated by spaces (not commas) specifies the function's parameter list. 예를 들면 다음과 같습니다.

VTS_I2 VTS_BOOL

specifies a list containing a short integer followed by a BOOL.

For a list of the VTS_ constants, see EVENT_CUSTOM.

요구 사항

Header: afxctl.h

참고 항목

참조

ON_EVENT_RANGE

ON_PROPNOTIFY_RANGE

개념

MFC 매크로 및 전역