I've seen an API which returns the visible region of a window, I think Kedamans site had it (Class explorer screenshot)


http://www.geocities.com/kedasu/kedacode.html