Export (0) Print
Expand All
MFC
TRY
Expand Minimize

IMPLEMENT_OLECTLTYPE

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

DECLARE_OLECTLTYPE(class_name, idsUserTypeName, dwOleMisc )

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.

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.

NoteNote:

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

Header: afxctl.h

Community Additions

ADD
Show:
© 2014 Microsoft