Solved

CHtmlView (copy paste)

Posted on 2000-02-22
5
623 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro to save highlighted rows as a separate file 5 41
WinWaitActive parameters 12 31
canBalance challenge 34 70
Path of Workbook 3 61
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

867 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

18 Experts available now in Live!

Get 1:1 Help Now