[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CHtmlView (copy paste)

Posted on 2000-02-22
5
Medium Priority
?
646 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 1080 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month19 days, 17 hours left to enroll

873 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