HeaderPane
Main
Hide
Share Link
Print

DropDownButtonRect

Returns the location of the dropdown button.

C

void WINAPI SftBox_GetDropDownButtonRect(HWND hwndCtl, LPRECT lpRect);

C++

void CSftBox::GetDropDownButtonRect(LPRECT lpRect) const;

Parameters

hwndCtl

The window handle of the combo box control.

lpRect

A pointer to a RECT structure. This structure will be updated with the location of the dropdown button, in client area coordinates of the combo box control (in pixels).

Returns

None.

Comments

The GetDropDownButtonRect function returns the location of the dropdown button.

The dropdown button is located at the right edge of the combo box's client area (at the left edge if the vertical scroll bar is located on the left side) and extends over the full height of the client area. If Windows themes are not used (see SetUseThemes), the border of the combo box (see the iBorderStyle member of the SFTBOX_CONTROL structure) is excluded.

An empty rectangle is returned for a simple combo box, which has no dropdown button, and if the dropdown button style SFTBOX_DDBUTTON_BUTTONHOVER or SFTBOX_DDBUTTON_BUTTONHOVERNT is used (see SetDropDownButtonStyle). With these styles, the dropdown button is a separate window located next to the combo box. Its window handle can be retrieved using GetHWNDDropDownButton.

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


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