Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

ShowHeaderButtons

Defines the presence of column header buttons.

C

BOOL WINAPI SftTree_GetShowHeaderButtons(HWND hwndCtl);
void WINAPI SftTree_SetShowHeaderButtons(HWND hwndCtl, BOOL fSet);
BOOL WINAPI SftTreeSplit_GetShowHeaderButtons(HWND hwndCtl);
void WINAPI SftTreeSplit_SetShowHeaderButtons(HWND hwndCtl, BOOL fSet);

C++

BOOL CSftTree::GetShowHeaderButtons() const;
void CSftTree::SetShowHeaderButtons(BOOL fSet = TRUE);
BOOL CSftTreeSplit::GetShowHeaderButtons() const;
void CSftTreeSplit::SetShowHeaderButtons(BOOL fSet = TRUE);

Parameters

hwndCtl

The window handle of the tree control.

fSet

Set to TRUE to display headers as buttons, set to FALSE to display headers as titles.

Returns

GetShowHeaderButtons may return TRUE even if headers are not displayed. In that case, the return value indicates the current settings which will take effect once the headers are shown (see SetShowHeader).

Comments

The GetShowHeaderButtons and SetShowHeaderButtons functions define the presence of column header buttons.

Examples

C

        SftTree_SetSelectionStyle(g_hwndTree, SFTTREE_SELECTION_ALL | SFTTREE_SELECTION_OUTLINE);/* Select entire item using outline */
        SftTree_SetSelectionArea(g_hwndTree, SFTTREE_SELECTIONAREA_ALLCELLS);/* Selection changes by clicking on an item's cells */
        SftTree_SetFlyby(g_hwndTree, TRUE);  /* Flyby highlighting */
        SftTree_SetUpdateCaretExpandCollapse(g_hwndTree, FALSE);/* don't update caret location when expand/collapse button clicked */
        SftTree_SetScrollTips(g_hwndTree, TRUE);/* Show Scrolltips */
        SftTree_SetInheritBgColor(g_hwndTree, TRUE);/* Inherit background color of first cell */
        SftTree_SetReorderColumns(g_hwndTree, TRUE);/* Column reordering */
        SftTree_SetOpenEnded(g_hwndTree, FALSE);/* Last column width */
        SftTree_SetShowHeaderButtons(g_hwndTree, TRUE);/* Show column header as buttons */

        /* Define control attributes */
        {
            SFTTREE_CONTROL CtrlInfo;
            memset(&CtrlInfo, 0, sizeof(SFTTREE_CONTROL));
            CtrlInfo.cbSize = sizeof(SFTTREE_CONTROL);
            if (!SftTree_GetControlInfo(g_hwndTree, &CtrlInfo))/* Get current settings */

C++

    m_Tree.SetSelectionStyle(SFTTREE_SELECTION_ALL | SFTTREE_SELECTION_OUTLINE);/* Select entire item using outline */
    m_Tree.SetSelectionArea(SFTTREE_SELECTIONAREA_ALLCELLS);/* Selection changes by clicking on an item's cells */
    m_Tree.SetFlyby(TRUE);               /* Flyby highlighting */
    m_Tree.SetUpdateCaretExpandCollapse(FALSE);/* don't update caret location when expand/collapse button clicked */
    m_Tree.SetScrollTips(TRUE);          /* Show Scrolltips */
    m_Tree.SetInheritBgColor(TRUE);      /* Inherit background color of first cell */
    m_Tree.SetReorderColumns(TRUE);      /* Column reordering */
    m_Tree.SetOpenEnded(FALSE);          /* Last column width */
    m_Tree.SetShowHeaderButtons(TRUE);   /* Show column header as buttons */

    /* Define control attributes */
    {
        SFTTREE_CONTROL CtrlInfo;
        memset(&CtrlInfo, 0, sizeof(SFTTREE_CONTROL));
        CtrlInfo.cbSize = sizeof(SFTTREE_CONTROL);
        if (!m_Tree.GetControlInfo(&CtrlInfo))/* Get current settings */

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