fixed so it activates right window in winxp

in winxp i cant just test if it has WS_VISIBLE flag, i have to test if it ALSO has WS_CAPTION flag. i should verify this is true on win81 etc otherwise add in a test for win