Solved

allow copy from listbox to clipboard

Posted on 1997-11-03
1
573 Views
Last Modified: 2013-11-20
I am using MSVC 4.2 and W95. I want to allow the user to
mark text in a listbox and copy it to the clipboard. I
hope I do not have to go ownerdraw, because I like the
smooth scrolling in the default listbox. Can I do this
easily, and how ?
0
Comment
Question by:genew
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1309269
There is no direct function to do so. What you can do is:
1. Use CListBox::GetText to get the text string.
2. Use Clipboard functions to copy it to the clipboard.

If you need further help, please let me know.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now