|Wichtig||Dieses Dokument enthält ggf. nicht die bewährten Methoden für die aktuelle Entwicklung. Außerdem sind Links zu Downloads und anderen Ressourcen u. U. nicht mehr gültig. Die aktuell empfohlene Version finden Sie hier. ArchiveDisclaimer|
MFC ActiveX Controls: Properties
An ActiveX control fires events to communicate with its control container. The container, in return, uses methods and properties to communicate with the control. Methods and properties are similar in use and purpose, respectively, to member functions and member variables of a C++ class. Properties are data members of the ActiveX control that are exposed to any container. Properties provide an interface for applications that contain ActiveX controls, such as Automation clients and ActiveX control containers.
Properties are also called attributes.
For more information on ActiveX control methods, see the article MFC ActiveX Controls: Methods.
ActiveX controls can implement both stock and custom methods and properties. Class COleControl provides an implementation for stock properties. (For a complete list of stock properties, see the article MFC ActiveX Controls: Adding Stock Properties.) Custom properties, defined by the developer, add specialized capabilities to an ActiveX control. For more information, see MFC ActiveX Controls: Adding Custom Properties.
Both custom and stock properties, like methods, are supported by a mechanism that consists of a dispatch map that handles properties and methods and existing member functions of the COleControl class. In addition, these properties can have parameters that the developer uses to pass extra information to the control.
The following articles discuss ActiveX control properties in more detail: