![]() |
Menu shortcut indication disappeared |
Post Reply
|
| Author | |
mailhaim
Newbie
Joined: 28 September 2005 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
Topic: Menu shortcut indication disappearedPosted: 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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mailhaim
Newbie
Joined: 28 September 2005 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mailhaim
Newbie
Joined: 28 September 2005 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 January 2006 at 4:51am |
|
That worked! Thanks.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |