Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to exchange data between ListView and TreeView Pin
Mohammed F. Salem21-Jul-05 12:01
Mohammed F. Salem21-Jul-05 12:01 
GeneralRe: How to exchange data between ListView and TreeView Pin
David Crow22-Jul-05 2:39
David Crow22-Jul-05 2:39 
GeneralRe: How to exchange data between ListView and TreeView Pin
Mohammed F. Salem22-Jul-05 2:59
Mohammed F. Salem22-Jul-05 2:59 
GeneralRe: How to exchange data between ListView and TreeView Pin
David Crow22-Jul-05 3:17
David Crow22-Jul-05 3:17 
GeneralRe: How to exchange data between ListView and TreeView Pin
Mohammed F. Salem22-Jul-05 5:20
Mohammed F. Salem22-Jul-05 5:20 
GeneralRe: How to exchange data between ListView and TreeView Pin
David Crow22-Jul-05 5:43
David Crow22-Jul-05 5:43 
GeneralRe: How to exchange data between ListView and TreeView Pin
Mohammed F. Salem22-Jul-05 8:05
Mohammed F. Salem22-Jul-05 8:05 
GeneralRe: How to exchange data between ListView and TreeView Pin
David Crow22-Jul-05 8:21
David Crow22-Jul-05 8:21 
I assume that the tree control is populated from a data structure (e.g., array, list) of some sort that holds all of the details. For each node that is added to the tree control, call SetItemData() with a pointer to one of the items in the aforementioned data structure. When an item is selected in the tree control, call GetItemData() to get access to the data. Now clear the contents of the list control and populate it with the data that was obtained from the call to GetItemData(). When the tree control needs to communicate with the list control, use PostMessage().


"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralRe: How to exchange data between ListView and TreeView Pin
Mohammed F. Salem22-Jul-05 8:28
Mohammed F. Salem22-Jul-05 8:28 
GeneralRe: How to exchange data between ListView and TreeView Pin
Mohammed F. Salem22-Jul-05 8:52
Mohammed F. Salem22-Jul-05 8:52 
Generalctreectrl Pin
ditty grail21-Jul-05 0:45
ditty grail21-Jul-05 0:45 
GeneralRe: ctreectrl Pin
David Crow21-Jul-05 2:58
David Crow21-Jul-05 2:58 
QuestionHow to drag an image in a View ? Pin
AbinThomas21-Jul-05 0:39
AbinThomas21-Jul-05 0:39 
GeneralError C2011 VS 2003 Pin
sweep12321-Jul-05 0:01
sweep12321-Jul-05 0:01 
GeneralRe: Error C2011 VS 2003 Pin
toxcct21-Jul-05 0:13
toxcct21-Jul-05 0:13 
GeneralRe: Error C2011 VS 2003 Pin
sweep12321-Jul-05 0:19
sweep12321-Jul-05 0:19 
GeneralRe: Error C2011 VS 2003 Pin
toxcct21-Jul-05 0:24
toxcct21-Jul-05 0:24 
GeneralRe: Error C2011 VS 2003 Pin
sweep12321-Jul-05 0:44
sweep12321-Jul-05 0:44 
GeneralRe: Error C2011 VS 2003 Pin
toxcct21-Jul-05 1:06
toxcct21-Jul-05 1:06 
GeneralRe: Error C2011 VS 2003 Pin
sweep12321-Jul-05 1:12
sweep12321-Jul-05 1:12 
GeneralRe: Error C2011 VS 2003 Pin
Alex_Y21-Jul-05 3:28
Alex_Y21-Jul-05 3:28 
GeneralHelp Required Pin
Sreekanth Muralidharan20-Jul-05 23:24
Sreekanth Muralidharan20-Jul-05 23:24 
Generalreduce size of array Pin
Mepho20-Jul-05 23:23
Mepho20-Jul-05 23:23 
GeneralRe: reduce size of array Pin
sunit520-Jul-05 23:53
sunit520-Jul-05 23:53 
GeneralRe: reduce size of array Pin
sunit521-Jul-05 4:23
sunit521-Jul-05 4:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.