Unsubclasses an OI control.

Syntax

rv = Send_Message(Ctrl, "OLE.Unsubclass", CtrlId)

Parameters

ParameterDescription
CtrlIdThe unique identifier of a subclassed control

Remarks

The Unsubclass method can be used to programmatically unsubclass an OI control. Just pass the name of the control. Once you've unsubclassed a control, you can no longer use the OLE Subclass control's properties, methods, or events until you subclass the OI control again.

All subclassed controls are automatically unsubclassed when a form is closed, so it is not necessary to call this method directly. It is provided as a convenience should a need to unsubclass controls arises.

Example

// Unsubclass the editline control 
rv = Send_Message(@Window:".OLE_SUBCLASS", "OLE.Unsubclass", @Window:".EDITLINE")

See Also

Subclass

  • No labels