I think you should override the WM_SIZE event to hand the resizing of TreeCtrl.
Jack

--------------------------------------------------------------------------------
HMI/SCADA/CAD/GIS VC++ Source Codes: http://www.code-home.com