CComControl::DoesVerbUIActivate

BOOL DoesVerbUIActivate( LONG iVerb );

Return Value

Returns TRUE if iVerb equals OLEIVERB_UIACTIVATE or OLEIVERB_PRIMARY. Also returns TRUE if the control is not active and iVerb equals OLEIVERB_UIACTIVATE, OLEIVERB_PRIMARY, OLEIVERB_SHOW, or OLEIVERB_INPLACEACTIVATE. Otherwise, the method returns FALSE.

Parameters

iVerb

[in] Value indicating the action to be performed by DoVerb.

Remarks

Checks that the iVerb parameter used by IOleObjectImpl::DoVerb causes the control's user interface to activate and returns TRUE.

DoesVerbUIActivate also checks whether the control is in-place active. If it is not and the value of iVerb causes the control to go active, DoesVerbUIActivate returns TRUE. This handles older containers that must activate the control and its user interface together.

CComControl OverviewClass Members

See Also   IOleObjectImpl::DoVerb, CComControl::DoesVerbActivate