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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win API: reading "text" from non-text control?

Status
Not open for further replies.

rocheey

Industrial
Joined
Jan 21, 2001
Messages
230
Location
US
Not sure if this is even possible, but if text were 'printed' on a form, or image control, is it possible to retrieve what is printed? Or is the text 'drawn on' ?

No Problems here using messaging or subclassing, just dont want to have write some sort of OCR code ...

TIA
 
The text printed on a form is just that, text with attributes. But on an image control it will probably be contained in the image that is displayed.

I've seen code somewhere to enumerate through the applications that are running an pull the Form.Caption information for each one that has a form displayed, but I forget where it is.


--
pansophic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top