Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CView Accelerator Keys in ActiveX Control

Posted on 1997-11-14
3
Medium Priority
?
376 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

610 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