SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftTree/NET 2.0 - Tree Control
Adds an array of strings to the autocomplete save file, skipping entries already present.
C
BOOL SftMask_AutoComplete_Seed(HWND hwndCtl, LPCTSTR * lplpszEntries, int count);
C++
BOOL CSftMask::AutoCompleteSeed(LPCTSTR * lplpszEntries, int count);
hwndCtl
The window handle of the masked edit control.
lplpszEntries
An array of strings to add.
count
The number of strings in the array.
The return value is TRUE if the entries were added and the save file was written successfully. FALSE is returned if no autocomplete save file is configured (auto_lpszFile field).
Entries already present in the save file are left unchanged, so seeding is cumulative and can safely be repeated at every application start - entries the user has entered are preserved. The auto_nMaxEntries limit is honored.
Seeding allows an application to offer meaningful suggestions the very first time the user encounters the control, instead of starting with an empty suggestion list. Configure the auto_lpszFile field (using SetControlInfo) before calling AutoCompleteSeed.
static LPCTSTR Names[] = { TEXT("Aaron"), TEXT("Alice"), TEXT("Andrew") };
SftMask_AutoComplete_Seed(hwndCtl, Names, 3);See Also AutoComplete | AutoCompleteAddBottom | AutoCompleteRefresh
