?
Solved

Copying from multiple edit boxes

Posted on 2003-02-27
4
Medium Priority
?
191 Views
Last Modified: 2013-11-20
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
Comment
Question by:BerMuDa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
mystiqueman earned 80 total points
ID: 8041140
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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question