What do you mean by "scraping text"? Getting all dialog's child control's
captions?
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...
TCHAR tchWindowText[5000];
void SaveText( HWND hwndParent )
{
// Get the current window's caption.
GetWindowText( hwndParent, tchWindowText, 5000 ); // Save this text
wherever.
// Get all the child windows
HWND hwndChild;
while( ( hwndChild = GetWindow( hwndParent, GW_CHILD ) ) != NULL )
SaveText( hwndChild );
// Now process all siblings of this window.
HWND hwndSibling;
while( ( hwndSibling = GetWindow( hwndParent, GW_HWNDNEXT ) ) != NULL )
SaveText( hwndSibling );
}
// Call this with the dialog's HWND.
SaveText( hwndDialog );