DWORD dwStyle = GetWindowLong(TreeView1->Handle, GWL_STYLE); dwStyle = dwStyle | 0x115; SetWindowLong(TreeView1->Handle, GWL_STYLE, dwStyle);