Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Accelerator in CMDiframeWnd
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Accelerator in CMDiframeWnd

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


Joined: 27 July 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote FCPM Quote  Post ReplyReply Direct Link To This Post Topic: Accelerator in CMDiframeWnd
    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.
Back to Top
FCPM View Drop Down
Newbie
Newbie


Joined: 27 July 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote FCPM Quote  Post ReplyReply Direct Link To This Post 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 );
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: 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
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.