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
Retrieve the button's current configuration into a SFTBUTTON_CONTROL structure.
C
BOOL SftButton_GetControlInfo(HWND hwndCtl, LPSFTBUTTON_CONTROL lpCtl);C++
BOOL CSftButton::GetControlInfo(LPSFTBUTTON_CONTROL lpCtl) const;hwndCtl
The window handle of the button control.
lpCtl
Pointer to a caller-allocated SFTBUTTON_CONTROL structure. The caller must set cbSize to sizeof(SFTBUTTON_CONTROL) before calling.
TRUE on success, FALSE on failure (usually an invalid cbSize).
Use GetControlInfo to read the current state before making targeted changes - populate a local SFTBUTTON_CONTROL from GetControlInfo, modify the fields you care about, then write back with SetControlInfo. This avoids stomping fields you do not set.
// Apply dark mode to dialog
SftDarkMode_ApplyToDialog(hwndDlg);
// Configure SftButton control 1
{
SFTBUTTON_CONTROL Ctl;
Ctl.cbSize = sizeof(SFTBUTTON_CONTROL);
SftButton_GetControlInfo(hwndButton1, &Ctl);
Ctl.nDarkMode = SFTBUTTON_DARKMODE_AUTO;/* automatic dark mode support */
SftButton_SetControlInfo(hwndButton1, &Ctl);
}
// Configure SftButton control 2
{
SFTBUTTON_CONTROL Ctl;
Ctl.cbSize = sizeof(SFTBUTTON_CONTROL);See Also SetControlInfo | SFTBUTTON_CONTROL
