Export (0) Print
Expand All
COM
id
in
int
odl
out
ptr
ref
Expand Minimize

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 
}

Parameters

attribute-list

Specifies zero or more attributes that apply to the library or coclass statement. Separate multiple attributes with commas.

lib-or-coclassname

Specifies the name of the library or coclass.

definitions

MIDL statements that specify the members of the library or coclass.

Remarks

This attribute allows you to mark type libraries that describe controls so they will not be displayed in type browsers intended for nonvisual objects.

Flags

TYPEFLAG_FCONTROL, LIBFLAG_FCONTROL

Examples

[
    uuid(12345678-1234-1234-1234-123456789ABC),
    helpstring("Hello 2.1 COM Control Library"), 
    control,version(2.1)
] 
library Hello 
{ 
    /* library definitions */
}

See also

ODL File Syntax
ODL File Example
Generating a Type Library With MIDL
TYPEFLAGS
coclass
library

 

 

Community Additions

ADD
Show:
© 2014 Microsoft