HeaderPane
Main
Hide

SftButton/DLL 3.0 - Button Control

Share Link
Print

C/C++ API

The complete C and C++/MFC API for SftButton/DLL 3.0, in alphabetical order.

FunctionDescription
CalcOptimalSizeCompute the ideal width and height for the button given its current content.
CreateCreate a SftButton control as a child window programmatically (C++/MFC only).
CSftButtonDefault constructor / destructor for the MFC class (C++/MFC only).
DoClickProgrammatically click the main button area.
DoClickDropDownProgrammatically click the dropdown arrow.
FreeGDIPlusImageLoadedFromFileFree a GDI+ image previously loaded with LoadGDIPlusImageFromFile.
FreeGDIPlusImageLoadedFromResourceFree a GDI+ image previously loaded with LoadGDIPlusImageFromResource.
GetControlInfoRetrieve the current SFTBUTTON_CONTROL structure.
GetDarkModeReturn the current dark mode setting (OFF / ON / AUTO).
GetDesignReturn whether the control is in design mode.
GetDPIReturn the effective DPI of the monitor the control is currently displayed on.
GetHighContrastModeReturn the current high contrast setting (OFF / ON / AUTO).
GetImageScalingReturn the current image-scaling setting (ASIS / STRETCH).
GetPixelScalingReturn the current pixel-scaling setting (ASIS / STRETCH).
IsDarkModeActiveReturn TRUE if dark-mode rendering is currently in effect.
IsHighContrastActiveReturn TRUE if high-contrast rendering is currently in effect.
LoadGDIPlusImageFromFileLoad a PNG / TIFF / JPEG / GIF / EMF image from a file as a GDI+ image suitable for SFT_PICTURE_GDIPLUS.
LoadGDIPlusImageFromResourceLoad a PNG / TIFF / JPEG / GIF / EMF image from an embedded application resource as a GDI+ image suitable for SFT_PICTURE_GDIPLUS.
QueryCharAsk the control whether it would handle a given character as an accelerator.
RefreshInvalidate and redraw the control.
RegisterAppRegister the SftButton window classes with a process.
SetControlInfoApply a SFTBUTTON_CONTROL structure to the button.
SetDarkModeSelect OFF / ON / AUTO dark mode for the button.
SetDesignSwitch the control into / out of design mode.
SetHighContrastModeSelect OFF / ON / AUTO high contrast for the button.
SetImageScalingSelect whether all images drawn by the button are scaled by currentDPI / 96 (default) or drawn at their native pixel size.
SetPixelScalingSelect whether caller-supplied pixel dimensions are interpreted as 96-DPI reference values (default) or used verbatim.
UnregisterAppUnregister the SftButton window classes.
WndProcThe button control's window procedure. Exposed for advanced subclassing scenarios; applications do not call it directly.

See Also Notifications | Windows Messages


Last Updated 05/09/2026 - (email)
© 2026 Softel vdm, Inc.