CComControlBase::GetAmbientUserMode

 

Retrieves DISPID_AMBIENT_USERMODE, a flag indicating whether the container is in run-mode (TRUE) or design-mode (FALSE).

Syntax

      HRESULT GetAmbientUserMode(
   BOOL& bUserMode
);

Parameters

  • bUserMode
    The property DISPID_AMBIENT_USERMODE.

Return Value

One of the standard HRESULT values.

Requirements

Header: atlctl.h

See Also

CComControlBase Class