Solved

CView Accelerator Keys in ActiveX Control

Posted on 1997-11-14
3
350 Views
Last Modified: 2013-11-19
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.
0
Comment
Question by:cdm100497
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1309976
If you want to proccess accelerators for activex control you must override IOleInPlaceActiveObject::TranslateAccelerator method.
0
 

Author Comment

by:cdm100497
ID: 1309977
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
 
LVL 7

Expert Comment

by:galkin
ID: 1309978
Yuo can get information to the container only since this is ActiveX control. Use IOleClientSite::GetContainer to obtain pointer to IOleContainer interface.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 106
Define unique primary key 9 81
ShiftLeft challenge 21 66
FizzBuzz challenge 9 73
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

707 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

12 Experts available now in Live!

Get 1:1 Help Now