title: How to use HTMLElement class in C/C++ code
body: <p>We have been using IHTMLElement and IHTMLElement2 scripting interface to access web objects and its properties. Right now we are in a situation, want to know the client area occupied by the element, minus any area taken by borders and scroll bars. I came across HTMLDocument class which has a method ClientRectangle(). Its documentation sounds very similar to what we are looking at. I am really not sure how do I access this method, if its ever possible.</p>
  
  <p>can anyone let know is it possible to create an instance of this HTMLDocument class and access its methods?</p>
  
  <p>Link to MSDN documentation of the class what I am talking about.
  <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.htmlelement.clientrectangle.aspx?cs-save-lang=1&amp;cs-lang=cpp#code-snippet-1" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.windows.forms.htmlelement.clientrectangle.aspx?cs-save-lang=1&amp;cs-lang=cpp#code-snippet-1</a></p>