HeaderPane
Main
Hide
Share Link
Print

DrawSelectionOutline

Draws a selection outline.

C

void WINAPI SftBox_DrawSelectionOutline(HWND hwndCtl, HDC hDC, LPCRECT lpRect, COLORREF OutlineBorder, COLORREF InnerBorder, COLORREF InnerFill1, COLORREF InnerFill2);

C++

void CSftBox::DrawSelectionOutline(HDC hDC, LPCRECT lpRect, COLORREF OutlineBorder, COLORREF InnerBorder, COLORREF InnerFill1, COLORREF InnerFill2);

Parameters

hwndCtl

The window handle of the combo box control.

hDC

The device context handle, where the selection outline is to be rendered.

lpRect

The location and size of the selection outline.

OutlineBorder

The outermost border color used to render the rounded selection outline rectangle.

InnerBorder

The inner border color used to render the rounded selection outline rectangle.

InnerFill1

The starting color (top) used to gradient fill the inside of the rounded selection outline rectangle.

InnerFill2

The ending color (bottom) used to gradient fill the inside of the rounded selection outline rectangle.

Comments

The DrawSelectionOutline function draws a rounded selection outline rectangle.

This function can be used by an application to render a selection outline in its own windows, matching the selection outline shown by the combo box control (see SFTBOX_SELECTION_OUTLINE). The colors used by the combo box control are available in the SFTBOX_COLORS structure (see GetCtlColors).

The selection outline is drawn using GDI+. If GDI+ is not available (see GetGDIPlusAvailable), nothing is drawn.

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


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