Another way may be using something like wxPerl...I'm only guessing, but looking at the docs, it looks like it should be possible. wxHTMLWindow sets its *height* (you specify the width on creation) based on its rendered HTML, and you should then be able to use wxScrolledWindow::GetVirtualSize() to determine this.