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
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.
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.
file: /Techref/os/win/api/win32/mess/src/msg02_6.htm, 1KB, , updated: 2000/4/7 11:19, local time: 2024/11/8 04:48,
13.59.188.225:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/os/win/api/win32/mess/src/msg02_6.htm"> CB_SETEDITSEL</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.