This method of the IWebBrowser2 interface retrieves the width of the Microsoft® Internet Explorer main window.
public int getWidth();