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

x
?
Solved

Accerator keys don't work

Posted on 1998-10-18
2
Medium Priority
?
234 Views
Last Modified: 2010-04-02
Any ideas why the acclerator keys (menu shortcuts) in my application don't work?  I'm using VC++ 6 and I've implemented a multidocument/frameview approach.

0
Comment
Question by:dpt081598
[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 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 150 total points
ID: 1175474
1. Do you have a custom message loop ?  If yes if must include TranslateAccelerators stuff.  If using the standard MFC message loop I guess this is okay

2. When you create the doc template you pass a resource id, IDR_MYDOC.  This same id is used for several things.including:

i. the id of a string from the document type parameters (e.g. fill extension etc.)
ii. the id of the menu for template
iii. the id of the accelerator table

The accelerator table should include the short-cut keys to match the text on the menu - and the command-id's.  Have you omitted to add this ?  I think it is probably this, given the little info you have given me to go on.

Post a few more details please if this is no help


0
 

Author Comment

by:dpt081598
ID: 1175475
This was a wierd one.  I was a little misleading by saying the "accelerator keys" didn't work.  Actually, it was just the menu mnemonics that didn't work.  I could click on the mainframe pull down menu, but I couldn't use the menu mnemonics ("alt-f", for example to pull down the "file" menu).  Once I know that the official term is "menu mnemonics," I could search the help properly and found article Q92527, "Accessing Parent Window's Menu from Child Window w/ Focus."

On my formviews in the dialog editor I had checked "system menu."  I didn't need to do this, but because I had it checked, the system menu was intercepting the keystrokes instead of letting them go to the mainframe menu.
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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

596 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