Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

GetContentWindow Method, SftTreeCell Object

Retrieves the content window attached to the cell.

Syntax

VB.NETobject.GetContentWindow(ByRef Window As Integer, ByRef Style As SftTreeContentWindowStyleConstants)
VBobject.GetContentWindow(Window As OLE_HANDLE, Style As SftTreeContentWindowStyleConstants)
C#.NETvoid object.GetContentWindow(out int Window, out SftTreeContentWindowStyleConstants Style);
VC++HRESULT object->GetContentWindow(OLE_HANDLE* Window, enum SftTreeContentWindowStyleConstants* Style);
CHRESULT object->raw_GetContentWindow(OLE_HANDLE* Window, enum SftTreeContentWindowStyleConstants* Style);

object

A SftTreeCell object.

Window

Returns the window handle of the window used for the cell as a content window. Returns NULL/Nothing if the cell does not have a content window.

Style

Returns the current options defined for the content window. Values of the following tables can be combined:

NameValueDescription
contentWindowSftTreeNone0None - No special handling.
contentWindowSftTreeKeepDisabled1Keep Disabled - The content window is always disabled. A content window is normally enabled and disabled as it is made visible or hidden. When contentWindowSftTreeKeepDisabled is specified, the content window is always disabled, even when it is visible.
contentWindowSftTreeKeepSize2Keep Size (Variable Height Tree Control) - The original size of the content window is preserved and the cell size adjusts accordingly. While a column can still be smaller or larger than the content window width, the content window is not resized, it is merely clipped. Without contentWindowSftTreeKeepSize, a content window is resized in height and width to fit within the cell. contentWindowSftTreeKeepSize has no effect in a fixed height tree control.

Comments

The GetContentWindow method retrieves the content window attached to the cell.

The Cell.AttachContentWindow method can be used to attach a content window to a cell.

See Also SftTreeCell Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.