Print Page | Close Window

CXTPMDiframeWnd

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=7376
Printed Date: 28 May 2025 at 5:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPMDiframeWnd
Posted By: sasank
Subject: CXTPMDiframeWnd
Date 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



Replies:
Posted By: Oleg
Date 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



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