An application sends an EM_GETSEL message to get the starting and ending character positions of the current selection in an edit control.
EM_GETSEL wParam = (WPARAM) (LPDWORD) lpdwStart; // receives starting position lParam = (LPARAM) (LPDWORD) lpdwEnd; // receives ending position
The return value is a zero-based 32-bit value with the starting position of the selection in the low-order word and the position of the first character after the last selected character in the high-order word. If either of these values exceeds 65, 535, the return value is -1.
In a rich edit control, if the selection is not entirely contained in the first 64K, use the message EM_EXGETSEL.
file: /Techref/os/win/api/win32/mess/src/msg05_9.htm, 1KB, , updated: 2000/4/7 11:19, local time: 2024/11/25 14:24,
3.145.180.152:LOG IN
|
©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://sxlist.com/TECHREF/os/win/api/win32/mess/src/msg05_9.htm"> EM_GETSEL</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.