HeaderPane
Main
Hide
Share Link
Print

AutoCompleteAddTop

Adds a custom entry at the top of the open autocomplete suggestion list.

C

BOOL SftMask_AutoComplete_AddTop(HWND hwndCtl, LPCTSTR lpszText, int entryType);

C++

BOOL CSftMask::AutoCompleteAddTop(LPCTSTR lpszText, int entryType);

Parameters

hwndCtl

The window handle of the masked edit control.

lpszText

The entry text.

entryType

An application-defined value identifying the entry. The value 0 is reserved and cannot be used. When the user accepts a custom entry, the NM_SFTMASK_MATCHCUSTOM notification reports this value.

Returns

The return value is TRUE if the entry was added.

Comments

Custom entries can only be added while handling the NM_SFTMASK_MATCHADDCUSTOMITEMS notification, which is sent only if the auto_iMode field is set to SFTMASK_AUTOCOMPLETE_SUGGEST. At any other time, the function returns FALSE. Custom entries are not saved to the autocomplete save file - use AutoCompleteSeed to add persistent entries.

See Also AutoCompleteAddBottom | AutoCompleteSeed | AutoComplete | Notifications


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