SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
A SftButton can display an attached dropdown arrow on its right edge. Set fShowDropDown to TRUE on the SFTBUTTON_CONTROL structure to show the arrow. The arrow is drawn on top of the background, in a sidebar separated from the main button area.
The arrow shape and the sidebar width are controlled by nDropDownStyle:
| Style | Description |
|---|---|
| SFTBUTTON_DROPDOWNSTYLE_STANDARD (0) | A standard width sidebar and arrow glyph. This is the default. |
| SFTBUTTON_DROPDOWNSTYLE_NARROW1 / _NARROW2 / _NARROW3 | Progressively narrower sidebars. Useful for tool buttons where horizontal space is tight. |
| SFTBUTTON_DROPDOWNSTYLE_WIDE1 | A wider sidebar. Useful for prominent dropdown affordances. |
Clicks on the dropdown arrow generate separate notifications so the application can distinguish between "invoke the primary button action" and "open the dropdown menu":
| BN_CLICKED (SFTBUTTONN_CLICK) | The user clicked on the main button area. |
| SFTBUTTONN_DROPDOWNCLICK | The user clicked on the dropdown arrow. |
| SFTBUTTONN_DBLCLICK | The user double-clicked on the main button area. |
| SFTBUTTONN_DROPDOWNDBLCLICK | The user double-clicked on the dropdown arrow. |
A typical WM_COMMAND handler dispatches the dropdown notification by showing a popup menu; the primary BN_CLICKED handler invokes the button's default action. The application can also simulate a dropdown click programmatically with SftButton_DoClickDropDown.
When fShowDropDown is TRUE, the UIA control type exposed to screen readers becomes SplitButton (rather than plain Button). Narrator / NVDA / JAWS users can then invoke the primary action and the dropdown arrow as separate targets. See Accessibility (Screen Readers).
