• Advertisement
Sign in to follow this  

Capturing the text from a text window by programming

This topic is 3891 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I would like to copy the text from a listbox and paste it in a file, but I'm not finding an way to capture the content of a text window by programming? Please, could you help me? Thanks in advance (I'm using VC++) Edit: The text window belongs to another application.

Share this post


Link to post
Share on other sites
Advertisement
I assume that you already have an HWND to the list box. If this is the case then you can iterate over the items and send them LB_GETTEXT to get the text. You can send LB_GETCOUNT to figure out how many items there are to iterate over.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement