SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTree/NET 2.0 - Tree Control
An item has been collapsed.
| VB.NET | Private Sub object_ItemCollapsed(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.ItemCollapsed |
| VB | Private Sub object_ItemCollapsed(ByVal ItemIndex As Long) |
| C#.NET | void object_ItemCollapsed(object sender, EventArgumentType e); |
| VC++ | void OnItemCollapsedobject(long ItemIndex); |
| C | HRESULT OnItemCollapsedobject(long ItemIndex); |
object
ItemIndex
The zero-based index of the item being collapsed.
The ItemCollapsed event occurs when an item has been collapsed.
This is a notification only. No tree control items or cells should be manipulated while handling this event.
End Sub Private Sub AxSftTree1_ItemExpanded(ByVal sender As System.Object, ByVal e As AxSftTreeLib80._DSftTreeEvents_ItemExpandedEvent) Handles AxSftTree1.ItemExpanded If e.itemIndex = 2 Then AxWindowsMediaPlayer1.Ctlcontrols.play() End If End Sub Private Sub AxSftTree1_ItemCollapsed(ByVal sender As System.Object, ByVal e As AxSftTreeLib80._DSftTreeEvents_ItemCollapsedEvent) Handles AxSftTree1.ItemCollapsed If e.itemIndex = 2 Then AxWindowsMediaPlayer1.Ctlcontrols.pause() End If End Sub Private Sub AxSftTree1_ItemDblClick(ByVal sender As System.Object, ByVal e As AxSftTreeLib80._DSftTreeEvents_ItemDblClickEvent) Handles AxSftTree1.ItemDblClick If e.areaType = SftTreeAreaTypeConstants.constSftTreeColumnRes Then
{
if (AreaType == constSftTreeColumnRes)
m_vTree->Column[ColIndex]->MakeOptimal();
}
BEGIN_EVENTSINK_MAP(CContentWindowsDlg, CDialog)
//{{AFX_EVENTSINK_MAP(CContentWindowsDlg)
ON_EVENT(CContentWindowsDlg, IDC_SFTTREE1, 42 /* ItemExpanded */, OnItemExpandedSfttree1, VTS_I4)
ON_EVENT(CContentWindowsDlg, IDC_SFTTREE1, 41 /* ItemCollapsed */, OnItemCollapsedSfttree1, VTS_I4)
ON_EVENT(CContentWindowsDlg, IDC_SFTTREE1, 5 /* ItemDblClick */, OnItemDblClickSfttree1, VTS_I4 VTS_I2 VTS_I2 VTS_I2 VTS_I2)
//}}AFX_EVENTSINK_MAP
END_EVENTSINK_MAP()
BOOL CContentWindowsDlg::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
INT_PTR dmResult;See Also SftTree Object | Object Hierarchy
