v2.48
_IModelViewEvents Interface Reference

Represents a handler for model view events. More...

Public Member Functions

HRESULT OnObjectsVisibilityChanged ([in] SAFEARRAY(int) pShowedObjectIds, [in] SAFEARRAY(int) pHiddenObjectIds)
 Handles the objects visibility changed event. It is impossible to change the visibility of an object in the handler of this event.
HRESULT OnObjectsVisualStyleChanged ([in] SAFEARRAY(int) pChangedObjectIds, [in] enum VisualStyle newVisualStyle)
 Handles the objects visual style changed event. It is impossible to change the visual style of an object in the handler of this event.
HRESULT OnViewVisualStyleChanged ([in] enum VisualStyle newVisualStyle)
 Handles the view visual style changed event. It is impossible to change the visual style of a view in the handler of this event.

Detailed Description

Member Function Documentation

◆ OnObjectsVisibilityChanged()

HRESULT OnObjectsVisibilityChanged ( [in] SAFEARRAY(int) pShowedObjectIds,
[in] SAFEARRAY(int) pHiddenObjectIds )

Handles the objects visibility changed event. It is impossible to change the visibility of an object in the handler of this event.

Parameters
[in]pShowedObjectIdsIDs of showed objects
[in]pHiddenObjectIdsIDs of hidden objects
See also
IModelView::SetObjectsVisibility, IModelView::IsObjectVisible

◆ OnObjectsVisualStyleChanged()

HRESULT OnObjectsVisualStyleChanged ( [in] SAFEARRAY(int) pChangedObjectIds,
[in] enum VisualStyle newVisualStyle )

Handles the objects visual style changed event. It is impossible to change the visual style of an object in the handler of this event.

Parameters
[in]pChangedObjectIdsIDs of objects whose visual style has changed
[in]newVisualStyleThe new visual style that has been set for the objects
See also
IModelView::SetObjectsVisualStyle, IModelView::GetObjectVisualStyle

◆ OnViewVisualStyleChanged()

HRESULT OnViewVisualStyleChanged ( [in] enum VisualStyle newVisualStyle)

Handles the view visual style changed event. It is impossible to change the visual style of a view in the handler of this event.

Parameters
[in]newVisualStyleThe new visual style of the view
See also
IModelView::VisualStyle