Solved

CHtmlView (copy paste)

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

21 Experts available now in Live!

Get 1:1 Help Now