Solved

CView Accelerator Keys in ActiveX Control

Posted on 1997-11-14
3
369 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xyBalance chalenge 58 102
changeXy challenge 13 93
how to split multiple lines delimiter : 8 119
Problem to App source 6 89
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.

762 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