Im trying to set my CTreeView control properties with the code:
SetWindowLongPtr( GetTreeCtrl().m_hWnd, GWL_STYLE, TVS_HASBUTTONS | TVS_CHECKBOXES );
However, it ends up crashing my program somewhere after the call. My CLeftView class owns the control and I tried calling it from the constuctor. Any help would be great.