I want to know how to copy the highlighted text?
-
Hello, I want to know how to copy the highlighted text to the clipboard (like pressing Ctrl+C) in my application using a button. What do I have to do after I map button control? The problem is the highlighted text is not only in my application but it's in the other application. (ex. browser, notepad, etc.) Help me, please. I have to finish my application within 4 days. Please...:((
-
Hello, I want to know how to copy the highlighted text to the clipboard (like pressing Ctrl+C) in my application using a button. What do I have to do after I map button control? The problem is the highlighted text is not only in my application but it's in the other application. (ex. browser, notepad, etc.) Help me, please. I have to finish my application within 4 days. Please...:((
-
Hello, I want to know how to copy the highlighted text to the clipboard (like pressing Ctrl+C) in my application using a button. What do I have to do after I map button control? The problem is the highlighted text is not only in my application but it's in the other application. (ex. browser, notepad, etc.) Help me, please. I have to finish my application within 4 days. Please...:((
Assuming you have a window handle, you can send the other window a WM_COPY message. Then, in theory, whatever was selected is in the clipboard and you can have a go at it. The other way to do it, in theory at least, would be to subclass the other app's window, and then use typical CWnd/CEdit functions to get the text (GetSel(), GetWindowText(), that kind of thing). Sorry to dissapoint you all with my lack of a witty or poignant signature.
-
Assuming you have a window handle, you can send the other window a WM_COPY message. Then, in theory, whatever was selected is in the clipboard and you can have a go at it. The other way to do it, in theory at least, would be to subclass the other app's window, and then use typical CWnd/CEdit functions to get the text (GetSel(), GetWindowText(), that kind of thing). Sorry to dissapoint you all with my lack of a witty or poignant signature.