CComControl::FireOnRequestEdit
컨트롤 속성 변경 하 고 개체 진행 방법 싱크가 요청 컨테이너의 싱크를 알립니다.
HRESULT FireOnRequestEdit(
DISPID dispID
);
매개 변수
- dispID
[in] 변경 된 속성의 식별자입니다.
반환 값
HRESULT 값 중 하나입니다.
설명
컨트롤 클래스에서 파생 된 경우 IPropertyNotifySink,이 메서드를 호출 합니다. CFirePropNotifyEvent::FireOnRequestEdit 연결 모두에 게 알리려면 IPropertyNotifySink 지정한 컨트롤 속성이 변경 되는 인터페이스.사용자 컨트롤 클래스에서 파생 되지 않는 경우 IPropertyNotifySink,이 메서드를 반환 합니다. S_OK.
이 메서드는 컨트롤이 연결 지점을 지원 하지 않는 경우에 호출할 수 있습니다.
예제
STDMETHODIMP CMyControl::put_MyTitle(BSTR newVal)
{
// the DISPID for MyTitle in this example is 4
DISPID dispID = 4;
// make sure we can change the property
if (FireOnRequestEdit(dispID) == S_FALSE)
return S_FALSE;
// store newVal in CComBstr member
m_bstrMyTitle = newVal;
// signal that the property has been changed
FireOnChanged(dispID);
return S_OK;
}
요구 사항
헤더: atlctl.h