Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 649
  • Last Modified:

CHtmlView (copy paste)

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
hiap_ho
Asked:
hiap_ho
  • 3
1 Solution
 
SamHobbsCommented:
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
 
hiap_hoAuthor Commented:
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
 
hiap_hoAuthor Commented:
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
 
chensuCommented:
Call CHtmlView::ExecWB with the OLECMDID_COPY and OLECMDID_PASTE commands.
0
 
hiap_hoAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now