Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying Text from CHtmlCtrl

Status
Not open for further replies.

Mike36

Programmer
Jul 28, 2000
1
US
Does anyone know of a way to copy selected text from a CHtmlCtrl window, and store it in memory and/or copy it to a text edit window?   Any help would be appriciated.
 
I haven't worked with CHtmlCtrl and I am not sure how exactly it is implemented but I've successfully used the SendMessage API function. All you have to do is write something like this: SendMessage(win_handle, WM_COPY, 0, 0) and you should have your text copied in clipboard. win_handle must be m_hWnd or of that kind. I am not pretty sure but just give it a try. Hope this helps.<br><br>dex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top