|
From: wangyang on 20 May 2008 05:55 I have two CtreeCtrls which contain the same items in my project. m_tree1,m_tree2. I want to do the same operation on m_tree2 when I operate m_tree1.For Example,I want to add a child item to the item in m_tree1,and m_tree2 display the same effect. How can I make a connection in two TreeCtrls.
From: Igor Tandetnik on 20 May 2008 08:04 "wangyang" <wangyang(a)hotmail.com> wrote in message news:OMbsd%23luIHA.3780(a)TK2MSFTNGP03.phx.gbl > I have two CtreeCtrls which contain the same items in my project. > m_tree1,m_tree2. > I want to do the same operation on m_tree2 when I operate m_tree1.For > Example,I want to add a child item to the item in m_tree1,and m_tree2 > display the same effect. So, just add the same item to both controls: m_tree1.AddItem(...); m_tree2.AddItem(...); > How can I make a connection in two TreeCtrls. I'm not sure what you mean by "making a connection" here. If you hope to somehow tell the two controls to stay in sync automatically, there ain't no such thing. -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925
|
Pages: 1 Prev: 'const' usage Next: Problem in writing into a file in German XP OS |