Export (0) Print
Expand All
TRY
Expand Minimize
This topic has not yet been rated - Rate this topic

IMPLEMENT_OLECTLTYPE

Implements the GetUserTypeNameID and GetMiscStatus member functions of your control class.

DECLARE_OLECTLTYPE(class_name, idsUserTypeName, dwOleMisc )

Parameters

class_name
The name of the control class.
idsUserTypeName
The resource ID of a string containing the external name of the control.
dwOleMisc
An enumeration containing one or more flags. For more information on this enumeration, see OLEMISC in the Platform SDK.

Remarks

In addition to IMPLEMENT_OLECTLTYPE, you must add the DECLARE_OLECTLTYPE macro to your control class declaration.

The GetUserTypeNameID member function returns the resource string that identifies your control class. GetMiscStatus returns the OLEMISC bits for your control. This enumeration specifies a collection of settings describing miscellaneous characteristics of your control. For a full description of the OLEMISC settings, see OLEMISC in the Platform SDK.

Note   The default settings used by the ActiveX ControlWizard are: OLEMISC_ACTIVATEWHENVISIBLE, OLEMISC_SETCLIENTSITEFIRST, OLEMISC_INSIDEOUT, OLEMISC_CANTLINKINSIDE, and OLEMISC_RECOMPOSEONRESIZE.

See Also

MFC Macros and Globals | DECLARE_OLECTLTYPE

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.