HeaderPane
Main
Hide
Share Link
Print

ShowResizer

Defines whether the dropdown portion can be resized by the user.

C

BOOL WINAPI SftBox_GetShowResizer(HWND hwndCtl);
void WINAPI SftBox_SetShowResizer(HWND hwndCtl, BOOL fSet);

C++

BOOL CSftBox::GetShowResizer() const;
void CSftBox::SetShowResizer(BOOL fSet);

Parameters

hwndCtl

The window handle of the combo box control.

fSet

Set to TRUE to allow resizing of the dropdown portion by the user, otherwise set to FALSE.

Returns

GetShowResizer returns TRUE if the dropdown portion can be resized by the user, otherwise FALSE is returned.

Comments

The GetShowResizer and SetShowResizer functions define whether the dropdown portion can be resized by the user.

By default, the dropdown portion cannot be resized (FALSE).

The resizer is a sizing grip located in the corner of the dropdown portion, between the vertical and the horizontal scroll bar. The user can drag the resizer using the mouse to change the height and width of the dropdown portion.

The resizer is only available in a dropdown or dropdown list combo box, and only if both scroll bars are always present in the dropdown portion: the combo box must have been created with the window styles WS_VSCROLL and WS_HSCROLL, and scroll bars that are not needed must be shown disabled (window style SFTBOXSTYLE_DISABLENOSCROLL or SetDisableNoScroll(TRUE)).

Once the user has resized the dropdown portion, the SFTBOXN_SIZEBOX notification is sent to the parent window. The new size replaces the height and width settings of the dropdown portion (in pixels, as with SetDroppedHeight using a negative value and SetDroppedWidth), so the dropdown portion is shown again at the size the user left it at. The new values can be retrieved using GetDroppedHeight and GetDroppedWidth.

GetSizeBox and SetSizeBox define the same setting.

Examples

C View entire sample code

    InitColumn(&aCols[0], 0, 100, TEXT("Color"));
    InitColumn(&aCols[1], 1, 100, TEXT("Description"));
    SftBox_SetColumns(hwndBox, 2, aCols);
    SftBox_SetShowHeaderDropDown(hwndBox, TRUE);// Column titles in the dropdown only
    SftBox_SetDroppedHeight(hwndBox, 12);       // Show up to 12 items
    SftBox_SetDropDownOptimalWidth(hwndBox, TRUE);// The dropdown is as wide as its columns
    SftBox_SetDisableNoScroll(hwndBox, TRUE);   // Scroll bars always shown, needed for the sizing box
    SftBox_SetShowResizer(hwndBox, TRUE);       // The user can resize the dropdown
    SftBox_SetDarkMode(hwndBox, SFTBOX_DARKMODE_AUTO);

    // Register the size of the cell pictures before adding items.
    // All pictures in the cells of a control are the same size.
    {
        SFTBOX_CELLINFOPARM CellInfo;
        memset(&CellInfo, 0, sizeof(CellInfo));
        CellInfo.index = -1;

C++ View entire sample code

    InitColumn(&aCols[0], 0, 100, _T("Color"));
    InitColumn(&aCols[1], 1, 100, _T("Description"));
    box.SetColumns(2, aCols);
    box.SetShowHeaderDropDown(TRUE);    // Column titles in the dropdown only
    box.SetDroppedHeight(12);           // Show up to 12 items
    box.SetDropDownOptimalWidth(TRUE);  // The dropdown is as wide as its columns
    box.SetDisableNoScroll(TRUE);       // Scroll bars always shown, needed for the sizing box
    box.SetShowResizer(TRUE);           // The user can resize the dropdown
    box.SetDarkMode(SFTBOX_DARKMODE_AUTO);

    // Register the size of the cell pictures before adding items.
    // All pictures in the cells of a control are the same size.
    {
        SFTBOX_CELLINFOPARM CellInfo;
        memset(&CellInfo, 0, sizeof(CellInfo));
        CellInfo.index = -1;

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


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