Print Page | Close Window

custumizing shortcuts problem

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=4397
Printed Date: 10 November 2025 at 5:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: custumizing shortcuts problem
Posted By: msamocha
Subject: custumizing shortcuts problem
Date Posted: 12 June 2006 at 5:38am

Hi

I have encountered an annoying problem in my application and was wondering whether someone might be able to help:

when going to the kbrd tab in the customize dlg, and removing an existing original shortcut (e.g ctrl-O for open), the shortcut still works after the dialog is closed for some reason.

in other words the shortcuts that are in the IDR_MAINFRAME cannot be erased for some reason. If I erase them in the custumize dialog they are deleted from the dialog ok but they still work
it's as if all my custumized shortcuts come in ADDITION to the IDR_MAINFRAME resource. (ie I can add shortcuts but not delete shortcuts that are in the RC file)


Looks like this started when migrating from 9.51 to 9.81. (I have noticed the slight change that savecommandbars saves the shortcuts now but that doesn't seem to be it)

any ideas are welcome







Replies:
Posted By: Oleg
Date Posted: 12 June 2006 at 8:41am

Check CustomizeDlg sample and try to find deifference.  

 

Do you have

pCommandBars->GetShortcutManager()->SetAccelerators(ID R_MAINFRAME); call.

if you override LoadFrame check that you call base method (CXTPFrameWnd::LoadFrame)



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



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