HeaderPane
Main
Hide

SftButton/DLL 3.0 - Button Control

Share Link
Print

Windows Messages

In addition to the standard Windows messages (WM_SETFONT, WM_COMMAND, WM_NOTIFY, WM_SETTEXT, WM_GETTEXT, etc.) that a SftButton control understands as a first-class Windows window, the control defines the following custom messages. Most applications use the SftButton_* helper functions instead of sending these messages directly, but the messages are documented here for applications that need to bypass the helper layer.

MessageValueDescription
SFTBUTTONM_GETCONTROLINFOWM_USER+3Retrieve the control's SFTBUTTON_CONTROL structure. lParam points to a caller-allocated SFTBUTTON_CONTROL with cbSize set.
SFTBUTTONM_SETCONTROLINFOWM_USER+7Apply a SFTBUTTON_CONTROL structure. lParam points to a populated SFTBUTTON_CONTROL.
SFTBUTTONM_GETDESIGNWM_USER+4Return the design-mode flag.
SFTBUTTONM_SETDESIGNWM_USER+8Set the design-mode flag.
SFTBUTTONM_QUERYCHAR_AWM_USER+5Ask whether an ANSI character would be handled as an accelerator.
SFTBUTTONM_QUERYCHAR_WWM_USER+6Ask whether a Unicode character would be handled as an accelerator.
SFTBUTTONM_REFRESHWM_USER+9Invalidate and repaint the control.
SFTBUTTONM_DOCLICKWM_USER+10Synthesize a click on the main button area.
SFTBUTTONM_DOCLICKDROPDOWNWM_USER+11Synthesize a click on the dropdown arrow.

The SftButton_QueryChar macro expands to either SFTBUTTONM_QUERYCHAR_A or SFTBUTTONM_QUERYCHAR_W depending on the build's UNICODE setting.

See Also C/C++ API | Notifications


Last Updated 04/23/2026 - (email)
© 2026 Softel vdm, Inc.