C++ MFC

Moderators: Lundin
Number of threads: 3326
Number of posts: 8984

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

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





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 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.
Operated by CommunityHeaven, a BootstrapLabs company.