ComboBox_LimitText macro (windowsx.h)
Limits the length of the text the user may type into the edit control of a combo box. You can use this macro or send the CB_LIMITTEXT message explicitly.
Syntax
int ComboBox_LimitText(
HWND hwndCtl,
int cchLimit
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
cchLimit
Type: int
The maximum number of characters.
Return value
Type: int
Always returns nonzero.
Remarks
For more information, see CB_LIMITTEXT.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | windowsx.h |