HeaderPane
Main
Hide
Share Link
Print

SFTBOX_DELETEPARM Structure

The SFTBOX_DELETEPARM structure is used as parameter for SetDeleteCallback to define an application-specific deletion callback routine, which is called whenever an item is removed from the combo box control.

typedef struct tagSftBoxDeleteParm {
    SFTBOX_DELETEPROC lpfnDelete;           // user supplied deletion callback routine
    SFTBOX_DWORD_PTR UserData;              // user supplied data
} SFTBOX_DELETEPARM, * LPSFTBOX_DELETEPARM;

typedef const SFTBOX_DELETEPARM * LPCSFTBOX_DELETEPARM;

Members

lpfnDelete

A pointer to a deletion callback routine of type SFTBOX_DELETEPROC, which is called whenever an item is removed from the combo box control. Specify NULL to discontinue using a deletion callback routine.

UserData

An application-specific value. This value is passed to the SFTBOX_DELETEPROC callback routine as UserData parameter. It can be used to pass a pointer to application data to the callback routine. h1 Comments

The SFTBOX_DELETEPARM structure is used as parameter for SetDeleteCallback to define an application-specific deletion callback routine, which is called whenever an item is removed from the combo box control.

Pointer typedefs: LPSFTBOX_DELETEPARM is a pointer to a SFTBOX_DELETEPARM structure, LPCSFTBOX_DELETEPARM is a pointer to a constant SFTBOX_DELETEPARM structure.

Examples

C View entire sample code

    lpCol->colorBgEnd = lpCol->colorBgSelEnd = SFTBOX_NOCOLOR;
    lpCol->colorProgress = lpCol->colorProgressEnd = SFTBOX_NOCOLOR;
    lpCol->realPos = lpCol->dispPos = position;
}

static void InitControls(void)
{
    SFTBOX_COLUMN aCols[2];
    SFTBOX_DELETEPARM Parm;

    // FONT NAMES combo box
    SftBox_SetSelectionStyle(m_hwndFonts, SFTBOX_SELECTION_CELL1);
    SftBox_SetDroppedHeight(m_hwndFonts, 8);
    SftBox_SetShowHeader(m_hwndFonts, SFTBOX_COLSTYLE_BUTTONTEXT);
    SftBox_EnableSortIndicators(m_hwndFonts, TRUE, FALSE);// the application sets the sort indicators
    SftBox_SetDarkMode(m_hwndFonts, SFTBOX_DARKMODE_AUTO);

C++ View entire sample code

}

/////////////////////////////////////////////////////////////////////////////
// Combo box setup

void CMainDlg::InitControls()
{
    SFTBOX_COLUMN aCols[2];
    SFTBOX_DELETEPARM Parm;

    // FONT NAMES combo box
    m_Fonts.SetSelectionStyle(SFTBOX_SELECTION_CELL1);
    m_Fonts.SetDroppedHeight(8);
    m_Fonts.SetShowHeader(SFTBOX_COLSTYLE_BUTTONTEXT);
    m_Fonts.EnableSortIndicators(TRUE, FALSE);// the application sets the sort indicators
    m_Fonts.SetDarkMode(SFTBOX_DARKMODE_AUTO);

See Also C/C++ API | Categories | Notifications


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