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!

How do I get text from a MFC view (I think) in another app?

Status
Not open for further replies.

ehmann

Programmer
Dec 19, 2004
1
US
I think its a MFC view that I am dealing with. The class name is "Afx:400000:20". I have the hWnd of the control. I tried all sorts of GetWindowText, SendMessage(various things), all to no avail. It looks like the target control is a listed view of some sort. I can select various entries and copy them to the clipboard. I'd rather not employ copy-n-paste to read the contents of the control. And I'd rather not hook the app if I don't have to. I suspect that if I send the correct SendMessage, I should be able to get back the desired text.

I am fairly new to this stuff but I have read quite a bit and can't find an answer. Anybody have any ideas?

Or, at least can someone explain to me how I can figure out how the control was created?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top