HeaderPane
Main
Hide
Share Link
Print

SizeBox

Defines whether a size box is shown in the lower-right corner of the dropdown portion so the user can resize the dropdown portion by dragging it.

C

BOOL WINAPI SftBox_GetSizeBox(HWND hwndCtl);
void WINAPI SftBox_SetSizeBox(HWND hwndCtl, BOOL fSet);

C++

BOOL CSftBox::GetSizeBox() const;
void CSftBox::SetSizeBox(BOOL fSet);

Parameters

hwndCtl

The window handle of the combo box control.

fSet

Set to TRUE to show a size box in the dropdown portion, otherwise set to FALSE.

Returns

GetSizeBox returns TRUE if the size box is enabled, otherwise FALSE is returned.

Comments

The GetSizeBox and SetSizeBox functions define whether a size box is shown in the lower-right corner of the dropdown portion. The size box is a small grip the user can drag to resize the dropdown portion.

The size box is located in the corner where the vertical and horizontal scroll bars of the dropdown portion meet. It is only available in a dropdown combo box or dropdown list combo box that was created with the WS_VSCROLL and WS_HSCROLL window styles and shows scroll bars that are not needed disabled (window style SFTBOXSTYLE_DISABLENOSCROLL or SetDisableNoScroll(TRUE)). A simple combo box never has a size box.

While the user drags the size box, the dropdown portion is resized. The resulting size replaces the dropdown portion's height and width settings with values in pixels, the same values SetDroppedHeight (using a negative value) and SetDroppedWidth accept (see GetDroppedHeight and GetDroppedWidth), so the dropdown portion is displayed at the same size the next time. Once the user has resized the dropdown portion using the size box, the SFTBOXN_SIZEBOX notification is sent to the parent window.

GetShowResizer and SetShowResizer define the same setting.

If the dropdown portion is currently displayed, SetSizeBox hides it.

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


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