Dear All:
I created a form with browser and set this form always on top. when i browse some website, sometimes it pops up ad window. How can i close these popup windows. i had try to use EnumWindow to get hwnd, but it seems that it will get all windows' hwnd, so if i get a hwnd and close it, maybe it will not the one i want to close.
the point is how can i get the popup windows' hwnd?

Thank you very much!!