共用方式為


IOleObjectImpl::OnPreVerbOpen

Called by DoVerbOpen before the control has been opened for editing in a separate window.

HRESULT OnPreVerbOpen( );

Return Value

Returns S_OK.

Remarks

To prevent the control from being opened for editing in a separate window, override this method to return an error HRESULT.

Requirements

Header: atlctl.h

See Also

Reference

IOleObjectImpl Class

IOleObjectImpl::DoVerbOpen

IOleObjectImpl::OnPostVerbOpen