Re: What is ActiveX properties ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



What Brian describes are the properties of the control's IDispatch
interface. It is mandatory for every ActiveX Control.

Additionally, and optionally, ActiveX Controls may expose
property pages. These are separate objects that expose GUI
for manipulating the properties of an instance (or multiple instances)
of the control.

Finally, some ActiveX Control Containers (for example VB6)
expose their own property pages listing the properties of the control
in a centralized place. These they discover from the control's
dispinterface's type library via the [bindable] and [displaybind]
attributes, as well as using the auxiliary IPerPropertyBrowsing
interface if implemented on the control.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Brian Muth" <bmuth@xxxxxxxx> wrote in message
news:OrZ$yvs8GHA.2316@xxxxxxxxxxxxxxxxxxxxxxx

"Vilius" <v_mockunas@xxxxxxxxxxxxxxxxxxx> wrote in message
news:OY1c2rs8GHA.4996@xxxxxxxxxxxxxxxxxxxxxxx
I know what is COM, interfaces and etc.
My question was only about properties, what are these?


Conceptually you can think of properties as public variables belonging to
the object. Under the hood, they are still implemented in the same manner
as methods, very much like a function call. For example, if an object has
a property called "colour", the interface might contain entries for
"get_colour" and "put_colour" so that the client can retrieve or set this
property value.

Brian




.



Relevant Pages