SECComboBoxEx Class
class SECComboBoxEx: public CComboBoxEx
SECComboBoxEx implements an enhanced CComboBoxEx, implementing auto-completion features.
Defined in: SECBoxEx.h
Comments
For the parent window to receive notification of the user pressing the Enter key, the parent must handle the SECCOMBOEX_NEWITEM message. The SECCOMBOEX_APPLY message is sent after the SECCOMBOEX_NEWITEM message is handled successfully and the new string has been added, or after an existing entry has been selected and the Enter key pressed.
Class Members
Creation/Initialization
Attributes
void SetCaseSensitive(BOOL bEnable)
Sets the case sensitivity of the control for selecting items.
void SetDelimiterKey(UINT vkDelim)
Sets the delimiter key for the control.
void SetDelimiterString(LPCTSTR strDelim)
Sets the delimiter string for the control.
Overridable
virtual void OnDelimiterKey(UINT nKey)
Called when the delimiter key is pressed.
virtual void OnEnterKey()
Called when the enter key is pressed.
virtual BOOL SelectTheString(int nStartIndex, CString& strFind)
Searches for a matching string and selects it into the edit control.
virtual BOOL OnInsertNewEntry(COMBOBOXEXITEM* pItem)
Override to add image, or to control insertion point in the list.
virtual BOOL PreProcessNewEntry(CString& strText)
Override to provide any validation.
Protected data members
UINT m_vkDelimiterKey
The delimiter key for the control.
CString m_strDelimiter
The delimiter string for the control.
UINT m_nLastKey
the last key pressed in the control.
BOOL m_bCaseSensitive
Determines if control searches in a case sensitive manner.