CView Accelerator Keys in ActiveX Control

I have created a ActiveX control which has a CDocument & CView (using an Article from MIND)...  However I cannot seem to find a way of getting the Accelerator's working for the View.  Nothing happens when I select Ctrl-C or Backspace, etc.
cdm100497Asked:
Who is Participating?
 
galkinConnect With a Mentor Commented:
If you want to proccess accelerators for activex control you must override IOleInPlaceActiveObject::TranslateAccelerator method.
0
 
cdm100497Author Commented:
This looks useful.  I was wondering if there is an sample code that could show how this would work and how I could get the information to the View...

I am relatively new to MFC programming and am not sure where I should override this function and how the information would be passed to the CView...
0
 
galkinCommented:
Yuo can get information to the container only since this is ActiveX control. Use IOleClientSite::GetContainer to obtain pointer to IOleContainer interface.
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.

All Courses

From novice to tech pro — start learning today.