views:

95

answers:

1

Hi all,

How to find the position of the HTMLElement in BHO(C#)? I need both offset position of the element in the page and the client position of the element i.e. position of the element from the Left-Top of the client window.

Any help would be greatly appreciated.

Once again thanks a million.

-Datte

A: 

I solved this problem myself.

The getClientRects() and getBoudningClientRect() methods of IHTMLElement2 are very helpful with this regard.

-Datte

dattebayo