HeaderPane
Main
Hide
Share Link
Print

ResizeHeader

Defines whether column headers are resizable by the user.

C

BOOL WINAPI SftBox_GetResizeHeader(HWND hwndCtl);
void WINAPI SftBox_SetResizeHeader(HWND hwndCtl, BOOL fSet);

C++

BOOL CSftBox::GetResizeHeader() const;
void CSftBox::SetResizeHeader(BOOL fSet);

Parameters

hwndCtl

The window handle of the combo box control.

fSet

Set to TRUE to enable header and column resizing, otherwise set to FALSE.

Returns

GetResizeHeader returns TRUE if column headers are resizable using the mouse, otherwise FALSE is returned.

Comments

The GetResizeHeader and SetResizeHeader functions define whether column headers are resizable by the user.

Columns can only be resized by the user if column headers are visible (see SetShowHeader). The setting applies to the column headers of the static portion and the dropdown portion.

Individual columns can be excluded from resizing by adding the SFTBOX_COL_LOCKED value to the colFlag member of the SFTBOX_COLUMN structure.

Examples

C View entire sample code

    // Use a delete callback routine
    Parm.lpfnDelete = (SFTBOX_DELETEPROC) FontsDeleteCallback;
    Parm.UserData = 0;
    SftBox_SetDeleteCallback(m_hwndFonts, &Parm);

    // FONT STYLE combo box
    SftBox_SetSelectionStyle(m_hwndStyle, SFTBOX_SELECTION_CELL1);
    SftBox_SetDroppedHeight(m_hwndStyle, 4);
    SftBox_SetResizeHeader(m_hwndStyle, FALSE);
    SftBox_SetReorderColumns(m_hwndStyle, FALSE);
    SftBox_SetShowHeader(m_hwndStyle, SFTBOX_COLSTYLE_BUTTONTEXT);
    SftBox_EnableSortIndicators(m_hwndStyle, TRUE, FALSE);// not sorted, but the column title is as tall as the others
    SftBox_SetDarkMode(m_hwndStyle, SFTBOX_DARKMODE_AUTO);

    InitColumn(&aCols[0], 0, 400, TEXT("Style"));
    SftBox_SetColumns(m_hwndStyle, 1, aCols);

C++ View entire sample code

    // Use a delete callback routine
    Parm.lpfnDelete = FontsDeleteCallback;
    Parm.UserData = (SFTBOX_DWORD_PTR) this;
    m_Fonts.SetDeleteCallback(&Parm);

    // FONT STYLE combo box
    m_Style.SetSelectionStyle(SFTBOX_SELECTION_CELL1);
    m_Style.SetDroppedHeight(4);
    m_Style.SetResizeHeader(FALSE);
    m_Style.SetReorderColumns(FALSE);
    m_Style.SetShowHeader(SFTBOX_COLSTYLE_BUTTONTEXT);
    m_Style.EnableSortIndicators(TRUE, FALSE);// not sorted, but the column title is as tall as the others
    m_Style.SetDarkMode(SFTBOX_DARKMODE_AUTO);

    InitColumn(&aCols[0], 0, 400, _T("Style"));
    m_Style.SetColumns(1, aCols);

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


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.