Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Menu shortcut indication disappeared
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Menu shortcut indication disappeared

 Post Reply Post Reply
Author
Message
mailhaim View Drop Down
Newbie
Newbie


Joined: 28 September 2005
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote mailhaim Quote  Post ReplyReply Direct Link To This Post Topic: Menu shortcut indication disappeared
    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?

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mailhaim View Drop Down
Newbie
Newbie


Joined: 28 September 2005
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote mailhaim Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mailhaim View Drop Down
Newbie
Newbie


Joined: 28 September 2005
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote mailhaim Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2006 at 4:51am
That worked! Thanks.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.