CComboEx.LimitTextmethod
Limits the length of the text the user may type into the edit control of a combo box.
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.
Syntax
SUB LimitText (BYVAL hCombo AS HWND, BYVAL chLimit AS LONG)
Parameters
| Name | Description | |
|---|---|---|
hCombo | The handle of the combo box control. | |
chLimit | The maximum number of characters the user can enter, not including the terminating null character. If this parameter is zero, the text length is limited to &h7FFFFFFE characters. |
Description
Limits the length of the text the user may type into the edit control of a combo box.
Remarks
If the combo box does not have the CBS_AUTOHSCROLL style, setting the text limit to be larger than the size of the edit control has no effect.
The CB_LIMITTEXT message limits only the text the user can enter. It has no effect on any text already in the edit control when the message is sent, nor does it affect the length of the text copied to the edit control when a string in the list box is selected.
The default limit to the text a user can enter in the edit control is 30,000 characters.
Example
CCombo.LimitText(hCombo, 260)
Reference
- Include file
CCombo.inc - Documented in Windows/WIndows Controls/CCombo Class.md
- Topic: CCombo Class