?
Solved

CView Accelerator Keys in ActiveX Control

Posted on 1997-11-14
3
Medium Priority
?
378 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

862 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