HeaderPane
Main
Hide
Share Link
Print

HWNDDropDownButton

Returns the window handle of the dropdown button.

C

HWND WINAPI SftBox_GetHWNDDropDownButton(HWND hwndCtl);

C++

HWND CSftBox::GetHWNDDropDownButton() const;

Parameters

hwndCtl

The window handle of the combo box control.

Returns

The return value is the window handle of the dropdown button. NULL is returned if the dropdown button is not a separate window or is not currently shown.

Comments

The GetHWNDDropDownButton function returns the window handle of the dropdown button.

The dropdown button is only a separate window if the dropdown button style SFTBOX_DDBUTTON_BUTTONHOVER or SFTBOX_DDBUTTON_BUTTONHOVERNT is used (see SetDropDownButtonStyle). With all other styles, the dropdown button is drawn by the combo box and NULL is returned. Its location can be retrieved using GetDropDownButtonRect.

With the styles SFTBOX_DDBUTTON_BUTTONHOVER and SFTBOX_DDBUTTON_BUTTONHOVERNT, the button window is created when the button is shown (while the mouse cursor is located on the combo box or while the combo box has the input focus) and is destroyed when the button is removed. The window handle returned is only valid for a short time and should not be saved by the application.

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


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