HeaderPane
Main
Hide
Share Link
Print

GDI+

The combo box control uses GDI+ for features not otherwise available:

GDI+ ships with all supported Windows versions (Windows 10 and above). An application can test whether GDI+ is available using the GetGDIPlusAvailable function.

Loading GDI+ Images

SftBox/DLL provides four functions which load and free GDI+ images, so the application does not have to initialize GDI+ or use GDI+ classes directly. Each load function returns an image pointer, which is used in a SFT_PICTURE structure of type SFT_PICTURE_GDIPLUS (see Sft_SetPictureGDIPlusImage).

FunctionDescription
LoadGDIPlusImageFromResourceLoads an image from an application resource.
LoadGDIPlusImageFromFileLoads an image from a file.
FreeGDIPlusImageLoadedFromResourceFrees an image returned by LoadGDIPlusImageFromResource.
FreeGDIPlusImageLoadedFromFileFrees an image returned by LoadGDIPlusImageFromFile.

The load function and the matching free function must always be paired. An image must not be freed while a combo box still uses it.

DrawSelectionOutline draws the outline rectangle with gradient fill used for selected items, for use in an application's own drawing code.


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