TreeView as ActiveX Control in C++
Posted on 1998-12-22
If I try to add the Microsoft TreeView control into a C++ project using the Component Gallery, several different wrapper files are generated even though it's only one component. I'm used to using CreateControl() with one wrapper file, but what do I do with several? How do they communicate with each other? If you use this control in Visual Basic it's easy, you just say treecontrol.node.add() or treecontrol.treeview.refresh(). If I were using the windows message version of the TreeView, I could send it a WM_NOTIFY message with EXPAND so make the tree automatically expand. How would I perform this same function when I'm treating it as an ActiveX control? Is there any documenation out there on this or similar?