Stuck? Need help? Ask questions on our forums.

C++ MFC

Moderators: Lundin
Number of threads: 3280
Number of posts: 8895

This Forum Only
Post New Thread

Report
How do I support copying data to the clip board? Posted by rsherry8 on 27 Oct 2009 at 4:55 PM
I am currently developing an application using C++ and MFC. After gathering user data, it runs for a bit and produces its output in a separate window. I created this output window by deriving from the class CframeWnd and then defining CoutputWindow::OnCreate. I would consider this to be fairly standard.

It works and the output displayed is correct but I would the user to be able to highlight part or the entire window using his/her mouse and then type control-C to copy the highlighted text to the clip board. That part does not work. Is there an easy way for me to make this work? Did I make the wrong decision when I derived from CframeWnd? By any chance, is there a standard class in MFC that supports this feature with little or no additional work by the programmer?

Bob





 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.