|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
CB_SETEDITSEL
An application sends a CB_SETEDITSEL message to select characters in the edit
control of a combo box.
CB_SETEDITSEL
wParam = 0; // not used; must be zero
lParam = MAKELPARAM((ichStart), (ichEnd); // start and end position
Parameters
ichStart
Value of the low-order word of lParam; this specifies the starting position. If this parameter is set to 1, the selection, if any, is removed.
ichEnd
Value of the high-order word of lParam; this specifies the ending position. If this parameter is set to 1, all text from the starting position to the last character in the edit
control is selected.
Return Values
If the message succeeds, the return value is TRUE. If the message is sent to a
combo box with the CBS_DROPDOWNLIST style, it is CB_ERR.
Remarks
The positions are zero-based. The first character of the edit control is in
the zero position. The first character after the last selected character is in
the ending position. For example, to select the first four characters of the edit
control, use a starting position of 0 and an ending position of 4.
See Also
CB_GETEDITSEL
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|