Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

How can i copy the highlighted item in a MFC list control,i wanted to copy the list control data to a text file.
Can i get any information on this please.
Posted

1 solution

Use the appropriate CListCtrl[^] member function to extract the selected item, and use WriteFile[^]to write it to a file.
 
Share this answer
 
Comments
P Uday kishore 28-Oct-13 7:18am    
Not to a separate file,but i just wanted that selected item to be copied into clipboard.
Sorry if i didn't clear in my question.
Richard MacCutchan 28-Oct-13 7:58am    
Your question states: i wanted to copy the list control data to a text file.
However, if you want to use the clipboard then see Clipboard: Using the Windows Clipboard.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900