DM_SETMAXTEXTLENGTH
The DM_SETMAXTEXTLENGTH message is sent to the dialog manager to set the maximum length of an edit string.
Param1
The ID of a dialog item.
Param2
New maximum length of the string.
Return
The previous value of the length of the string or 0 in case of error.
Controls
Control | Description |
---|---|
DI_COMBOBOX | combined list |
DI_EDIT | edit line |
DI_PSWEDIT | password input field |
Remarks
- For DI_COMBOBOX items affects only the edit line (has no effect for items with the DIF_DROPDOWNLIST flag set)
- In FAR versions before 1.70 beta 4, this message was called DM_SETTEXTLENGTH.
Example
See also: