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

CXTPMDiframeWnd

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


Joined: 16 May 2007
Location: India
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sasank Quote  Post ReplyReply Direct Link To This Post Topic: CXTPMDiframeWnd
    Posted: 14 June 2007 at 12:59am
Dear Oleg,

I am developing my application using CXTPMDIFrameWnd. It works fine except when I am handling keyboard messages. I need to use Virtual keys and keyboard acclerations in my applcation and hence I have loaded the Accelerators in the usual procedure that I do MFC applications(i.e., CFrameWnd). But the Keyboard accelerators are not working. When I debug the application I find that the control is not entering PreTranslateMessage.

Is it that CXTPMDIFrameWnd is hooking the Keyboard messages? Please let us know how to get around this problem.

Regards
Sasanka Ranganatha
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 15 June 2007 at 4:53am

Hi,

Call

 pCommandBars->GetShortcutManager()->SetAccelerators(IDR_MAINFRAME);
to load accelerators in CMainFrame::OnCreate.
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.