Enumerate all of its children looking for dialog windows class. BOOL hWnd_Is_Dialog( HWND hWnd ) { char szName[ 30 ]; return ( IsWindow( hWnd ) and GetClassName( hWnd, szName, sizeof( szName ) ) > 0 and strncmp( szName, "#32770", 6 ) eq 0 // see WC_DIALOG 32770 = 0x8002 ); // A dialogs window class name is "#32770" unless a private class is used. } You might be able to just run this agains GetLastActivePopup() instead of enumerating all windows. Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com