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 Windows 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 Windows SDK.
Notes
The default settings used by the ActiveX ControlWizard are: OLEMISC_ACTIVATEWHENVISIBLE, OLEMISC_SETCLIENTSITEFIRST, OLEMISC_INSIDEOUT, OLEMISC_CANTLINKINSIDE, and OLEMISC_RECOMPOSEONRESIZE.
Requirements
Header: afxctl.h