I have been trying to get the viewport coordinates or the client rect for Firefox 2 for the past month. I am trying to determine if an element is visible within a scrolled view, or if it is outside of the scrolled view.
I am unable to get any scrollable view. I have tried various interfaces and methods that use nsRect, but receive: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall nsRect::nsRect (int,int,int,int)". I cannot get an nsIContext interface. I am also unable to get a nsIDOMNSHTMLElement interface to get the client width or height. I have tried so many different things, I've lost track of everything I have tried. The code is located in a dll with MOZILLA_INTERNAL_API defined, linking to xpcom.dll and xpcomglue_s.dll. I have tried linking to various other libraries and combinations of them, including nspr4.dll and gkgfx.lib. I would be happy to either be able to use nsRect or get the client width and height for the clip rect. And, I would be extremely grateful to any help that anyone can give me. I truly am desparate!! _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
