What are Ambient properties?
The definition of ambient is “surrounding or encircling” and this precisely describes the purpose of a container’s ambient properties. The OLE Control standard defines a set of ambient properties that are read-only characteristics of a control container. Ambient properties typically provide default values for properties of a control. A good example is a containers ambient font. To provide a uniform and aesthetically pleasing interface, a control should initially use the ambient font provided by the container. If the control user specifically wants a different font for a specific control it is easily changed via a property browser. BackColor, Font, and DisplayName are some examples of ambients described by the OLE Control standard. MFC provides easy-to-use methods to access these properties. UserMode is one of the most important ambient properties. It indicates to a control whether or not the container is in design-mode or run-mode. Based on this property, A control’s behavior typically