Print Page | Close Window

Accelerator in CMDiframeWnd

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=5220
Printed Date: 11 November 2025 at 1:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Accelerator in CMDiframeWnd
Posted By: FCPM
Subject: Accelerator in CMDiframeWnd
Date Posted: 04 October 2006 at 2:55pm
Hi,

I want to add accelerator to some of the toolbar commands in a MDI applicaion.

First I changed the RC accelerator table, then tested it, nothing happens. Other than beep while I click on the docking control bar. Then I did
pCommandBars->GetShortcutManager()->SetAccelerators( IDR_MAINFRAME ); do not work either.


The same idea works no problem in traditional MDI application.

Any ideas?

F.C.



Replies:
Posted By: FCPM
Date Posted: 04 October 2006 at 3:45pm
When I get rid of this line from CMainFrame::OnCreate, looks everything works fine

pCommandBars->GetShortcutManager()->SetAccelerators( IDR_MAINFRAME );


Posted By: Oleg
Date Posted: 05 October 2006 at 10:17am

Hi,

 
try to comment for one run LoadCommandBars - may be old empty accelerators are loaded.

 

 



-------------
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