Solved

CHtmlView (copy paste)

Posted on 2000-02-22
5
629 Views
Last Modified: 2013-11-20
I'm using CHtmlView classes to build my application. Can anybody tell me how can I implement the copy paste function ?
I would like it to copy to clipboard when I press Ctrl+C key just like any other application. The application automatically give me the copy paste function on mouse right click, but I want it to work wiht Ctrl+C key.
0
Comment
Question by:hiap_ho
  • 3
5 Comments
 
LVL 3

Expert Comment

by:SamHobbs
ID: 2548828
Your application's accelerator table should already have an entry for ID_EDIT_COPY associated with the Ctrl+C key. If it does not, then try creating one.

0
 
LVL 1

Author Comment

by:hiap_ho
ID: 2549122
I know how to create the Ctrl+C however the ID_EDIT_BOX menu is not working in my application. The copy paste function that is working is the one when you right click you mouse, it'll give you the default windows menu popups, can anybody tell me how to access it ?
0
 
LVL 1

Author Comment

by:hiap_ho
ID: 2549177
I know how to create the Ctrl+C however the ID_EDIT_BOX menu is not working in my application. The copy paste function that is working is the one when you right click you mouse, it'll give you the default windows menu popups, can anybody tell me how to access it ?
0
 
LVL 23

Accepted Solution

by:
chensu earned 270 total points
ID: 2549207
Call CHtmlView::ExecWB with the OLECMDID_COPY and OLECMDID_PASTE commands.
0
 
LVL 1

Author Comment

by:hiap_ho
ID: 2549232
Thanks chensu, you have been very helpful. =) MSDN library is sure huge, it takes me whole day to search the functions. Thanks to you I can rest now =)
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 101
fizzArray2 challenge 1 79
FizzBuzz challenge 9 81
My project did see openJDK that I installed. What could be the problem 7 143
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 …
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…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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