如何用IHTMLElement2中的get_clientLeft函数

解决方案 »

  1.   

    IHTMLElement2::clientLeft Property--------------------------------------------------------------------------------Retrieves the distance between the offsetLeft property and the true left side of the client area. SyntaxHRESULT IHTMLElement2::get_clientLeft(long *p);
    Parametersp
    Pointer to a long that receives the described distance, in pixels.
    Return ValueReturns S_OK if successful, or an error value otherwise. 
    ResThe difference between the offsetLeft and clientLeft properties is the border of the object
      

  2.   

    Get position of Scroll:
    HRESULT IHTMLElement2::get_scrollTop(long *p);
    HRESULT IHTMLElement2::get_scrollLeft(long *p);
    HRESULT IHTMLElement2::get_scrollWidth(long *p);
    HRESULT IHTMLElement2::get_scrollHeight(long *p);