Print Page | Close Window

Menu shortcut indication disappeared

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3522
Printed Date: 09 November 2025 at 11:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu shortcut indication disappeared
Posted By: mailhaim
Subject: Menu shortcut indication disappeared
Date Posted: 17 January 2006 at 7:16am

Hi, I'm using Developer studio resource menu. I have a lot of shortcut keys which work but... the indication of those shortcuts does not appear. For example:

The menu item "Save All\tCtrl+S" shows as "Save All" without the Ctrl+S.

Any ideas?




Replies:
Posted By: Oleg
Date Posted: 17 January 2006 at 11:31am

Hello,

it is designed to allow user change it in customization mode.

Solutions

1. If you don't need customization call

pCommandBars->GetCommandBarsOptions()->bAutoUpdateShor tcuts = FALSE;

2. If you use/not use customization you can add all accelerators to main accelerator table (IDR_MAINFRAME) because toolkit automatically get it from it.

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mailhaim
Date Posted: 22 January 2006 at 1:58am

Hi Oleg, thanks for your reply.

I should mention that I'm using 9.51 version.

Regarding the customization, This was happened before I implemented the customization. Anyway I don't see any option in the customization dialog regarding it.

The flag bAutoUpdateShortcuts does not exist in 9.51

My accelerators exist in accelerator table named IDR_ACCELERATORS_MAIN which is loaded this way:

m_hAcceleratorTable = ::LoadAccelerators(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_ACCELERATORS_MAIN));

What do you think?



Posted By: Oleg
Date Posted: 24 January 2006 at 2:00pm

Hi,

In 9.51 as I remember :) it tried to load accelerator of identifier that you use for main frame. so copy shortcuts to IDR_MAINFRAME accelerator resource.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mailhaim
Date Posted: 25 January 2006 at 4:51am
That worked! Thanks.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net