Multiple selection in a CTreeCtrl ???
-
Hi, I'm wondering why there seem not be possible to select more than one item in a CTreeCtrl. Or am I wrong? My problem is simple: I have a collection of 3D objects that I render in an OpenGL window. In a separate window I want to show the hierarchical view of these objects and at the same time to be able to select one or more of them to set their properties (like visible/invisible, solid/wireframe, ...) What is the best method to solve my problem:confused: Thanks for your help :) Marc
-
Hi, I'm wondering why there seem not be possible to select more than one item in a CTreeCtrl. Or am I wrong? My problem is simple: I have a collection of 3D objects that I render in an OpenGL window. In a separate window I want to show the hierarchical view of these objects and at the same time to be able to select one or more of them to set their properties (like visible/invisible, solid/wireframe, ...) What is the best method to solve my problem:confused: Thanks for your help :) Marc
Mr.Freeze wrote: I'm wondering why there seem not be possible to select more than one item in a CTreeCtrl. Or am I wrong? You are correct: The native TreeView Control does not support multiple selection. There is code available on this site, and also on code*uru, that implements multiple selection. The "quick-n-dirty" way of doing it is to use the TVIS_DROPHILITED state to simulate selection. Peace! -=- James.