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"); } }





Reply With Quote