Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

StopAutoExpandTimer

Ends a started SFTTREEN_AUTOEXPANDING notification timer.

C

void WINAPI SftTree_StopAutoExpandTimer(HWND hwndCtl);
void WINAPI SftTreeSplit_StopAutoExpandTimer(HWND hwndCtl);

C++

void CSftTree::StopAutoExpandTimer();
void CSftTreeSplit::StopAutoExpandTimer();

Parameters

hwndCtl

The window handle of the tree control.

Comments

The StopAutoExpandTimer function ends a started SFTTREEN_AUTOEXPANDING notification timer.

Examples

C

    LPSFTTREE_DRAGINFO lpInfo;
    lpInfo = SftTree_GetDragInfo(m_hwndLeftTree);

    if (lpInfo->hwnd != m_hwndLeftTree) { // The target is another window

        // clear old drop target
        if (m_hwndLastTarget) {
            SftTree_SetDropHighlight(m_hwndLastTarget, -1, FALSE);
            SftTree_StopAutoExpandTimer(m_hwndLastTarget);
        }
        m_hwndLastTarget = NULL;

        // the target is another control, we have to set the cursor and
        // also update the drop target
        // In this example the "other" control could be the right tree control

C++

        index = m_LeftTree.GetDropHighlight();
        text = _T("The drop target is item %d in the left tree control");
    }

    // always clear drop targets.  If you forget, or do it too late,
    // the vertical scrolling may still be active
    if (m_lastDropTarget) {
        m_lastDropTarget->SetDropHighlight(-1);
        m_lastDropTarget->StopAutoExpandTimer();
    }
    m_lastDropTarget = NULL;    

    str.Format(text, index);
    AfxMessageBox(str);
}

See Also C/C++ API | Categories | Notifications