|MFC Library Reference|
Determines if the container is in design mode or user mode.
BOOL AmbientUserMode( );
Nonzero if the container is in user mode; otherwise 0 (in design mode). If this property is not supported, this function returns 0.
For example, a container might set this to FALSE in design mode.