General information
Category:
Coding, syntax & commands
Hi Jim --
>>This doesn't work because the selected text could be on any form and any control.<<
Are you comfortable with APIs? The typical way to do this would be to use GetFocus or GetForegroundWindow to obtain the hWnd of the active textbox. Then call SendMessage with EM_GETSEL. On return, wParam will hold the starting position, and lParam the ending position, of the selected text. If these values are equal, no text is selected.
Later... Karl
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only