This method retrieves DISPID_AMBIENT_USERMODE, a flag that indicates whether the container is in run-mode (TRUE) or design-mode (FALSE).
At a Glance
| Header file: | Atlctl.h | 
| Windows CE versions: | 2.0 and later | 
| Complete documentation: | Visual C++ documentation | 
Syntax
HRESULT GetAmbientUserMode( BOOL& bUserMode );