Quote Originally Posted by DeepT View Post
Peter_b: EnumChildWindows, sorry about that.
Just to make sure you've covered all bases, have you tried it with just EnumWindows? I.e.
Code:
CString Output;

BOOL CALLBACK EnumFunc(HWND hwnd, LPARAM lParam)
{
	// Get text and add to 'Output' etc...

	return TRUE;
}

void WaitForClick(void)
{
	bool DidClick = false;

	while ( false == DidClick)
	{
		printf(" ------------ \n");
		EnumWindows( EnumFunc, (LPARAM)&DidClick);
		Sleep(500);
		printf(" ------- \n");
	}  
}