Solved

allow copy from listbox to clipboard

Posted on 1997-11-03
1
577 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
move a line in eclipse 3 103
NotAlone Challenge 20 83
matchUp  challenge 9 109
Bartender label printing - switch on and off graphics 3 39
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

777 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