You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Unsubclasses an OI control that the SRP Tab Control automatically subclassed.

Syntax

rv = Send_Message(Ctrl, "OLE.UnsubclassCtrl", Handle)

Parameters

ParameterDescription
HandleThe window handle to the control to unsubclass

Remarks

When the SRP Tab Control's AllowXPTheme property is set, it subclasses several types of OI controls in order to make them transparent over the tab background, which is usually gradient in nature. In some cases, you may not want certain controls on the form to be subclassed. For example, you mey intend to place these control within the SRP Panel Control, and the tab's subclassing will causes graphical anomolies.

The UnsubclassCtrl method simply returns the control on a form back to it's default behavior. If the control was never subclassed, nothing happens.

The Handle property identifies the control to unsubclass. Use the control's HANDLE property to get this value.

Example

// Unsubclass an editline 
Handle = Get_Property(@Window:".EDITLINE", "HANDLE") 
Send_Message(@Window:".OLE_TAB", "OLE.UnsubclassCtrl", Handle)
  • No labels