Well, the first thing to do is post to the correct newsgroup. This is the C#
language group. For C++ code, you need the C++ group.
What do you mean by "scraping text"? Getting all dialog's child control's
Look at Win32 GetWindow() and GetWindowText() functions.
You'll need to call GetWindow(), starting with the parent dialog's HWND,
recursively. For each obtained child window's HWND, call GetWindowText().
That'll do it...
void SaveText( HWND hwndParent )
// Get the current window's caption.
GetWindowText( hwndParent, tchWindowText, 5000 ); // Save this text
// Get all the child windows
while( ( hwndChild = GetWindow( hwndParent, GW_CHILD ) ) != NULL )
SaveText( hwndChild );
// Now process all siblings of this window.
while( ( hwndSibling = GetWindow( hwndParent, GW_HWNDNEXT ) ) != NULL )
SaveText( hwndSibling );
// Call this with the dialog's HWND.
SaveText( hwndDialog );
@gmail.com> wrote in message
Peter Bromberg [C# MVP] wrote:
> Well, the first thing to do is post to the correct newsgroup. This is the C#
> language group. For C++ code, you need the C++ group.
> Aside from that, screen scraping is done pretty much the same way regardless
> of whether from a windows app or a web app.
Web screen scraping consist of sending a HTTP request and pulling
the right information out of the returned HTML - often done using
I would expect screen scraping a win form to be very different.