window-get-width

long ( window-get-width long window-id)

Gets the width of the window.