Stock Properties

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Stock Properties.

If you are adding a property to an MFC dispinterface using the Add Property Wizard, you can choose a stock property from the Property name list in the Names page of the wizard. These properties are as follows:

Property nameDescription
AppearanceReturns or sets a value that determines the appearance of the control. The control's Appearance property can include or omit three-dimensional display effects. This is an ambient read/write property.
BackColorReturns or sets the control's ambient BackColor property to either a palette (RGB) color or a predefined system color. By default, its value corresponds to the foreground color of the control's container. This is an ambient read/write property.
BorderStyleReturns or sets the border style for a control. This is a read/write property.
CaptionReturns or sets the control's Caption property. The caption is the title of the window. Caption has no Member variable implementation type.
EnabledReturns or sets the control's Enabled property. An enabled control can respond to user-generated events.
FontReturns or sets the control's ambient font. Null if the control has no font.
ForeColorReturns or sets the control's ambient ForeColor property.
hWndReturns or sets the control's hWnd property. hWnd has no Member variable implementation type.
ReadyStateReturns or sets the control's ReadyState property. A control can be uninitialized, initialized, loading, interactive, or complete. See READYSTATE in the Internet SDK for more information.
TextReturns or sets the text contained in a control. Text has no Member variable implementation type.

Adding a Property
IDL Attributes, Add Property Wizard

Show: