• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Copying from multiple edit boxes

Hi all,

Priyesh managed to teach me how to create a copy button from a single edit box. I have about 5 edit boxes and I don't want to create 5 copy buttons.
How do I create 1 copy button that will copy anything that's hilighted.

This is what I have for the copy button:

CEdit* pEdit = (CEdit*)GetDlgItem(IDC_EDIT1) ;
pEdit->Copy();

Thanks

0
BerMuDa
Asked:
BerMuDa
1 Solution
 
mystiquemanCommented:
Well first of all you can use CEdit::GetSel (you can see in MSDN) to find out what edit box has something hilighted and then get the selection with CEdit::GetSel
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now