Setting size of TreeCtrl with Splitter

I have a splitter window, with a TreeCtrl on the left, and some other stuff on the right. The tree is populated dynamically (after initial widget creation). I'm trying to figure out how to determine the width of the tree (based on widest text), and to set the sash position programatically so that the full text is visible without a horizontal scrollbar.

Any suggestions?
bob

···

--
Bob Robison bob.robison@swri.org
Staff Engineer 210-522-3935
Southwest Research Institute San Antonio, TX