control attribute
The [control] attribute identifies a coclass or library as a COM control, from which a container site will derive additional type libraries or component object classes.
[
uuid,
control
[, attribute-list]
]
library | coclass lib-or-coclassname
{
definitions
}
-
attribute-list
-
Specifies zero or more attributes that apply to the library or coclass statement. Separate multiple attributes with commas.
-
lib-or-coclassname
-
definitions
-
MIDL statements that specify the members of the library or coclass.
This attribute allows you to mark type libraries that describe controls so they will not be displayed in type browsers intended for nonvisual objects.
TYPEFLAG_FCONTROL, LIBFLAG_FCONTROL
[
uuid(12345678-1234-1234-1234-123456789ABC),
helpstring("Hello 2.1 COM Control Library"),
control,version(2.1)
]
library Hello
{
/* library definitions */
}