Print Page | Close Window

Add Event Wizard doesn’t work

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=1385
Printed Date: 07 November 2025 at 1:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add Event Wizard doesn’t work
Posted By: RickSaada
Subject: Add Event Wizard doesn’t work
Date Posted: 08 November 2004 at 1:54pm

Once I change my MainFrame to derive from CXTPMDIFrameWnd instead of CMDIFrameWnd, the MFC Add Event wizard on longer works on that class.  Is there a way to avoid this?  I can temporarily change the derivation to use the wizard and change it back afterwards, but it's a pain.

Thanks for any advice,

Rick




Replies:
Posted By: spike
Date Posted: 10 November 2004 at 7:25am

Rick,

I believe the wizard uses the message map part of your .cpp file to determine what type of events the window can handle. Since it is an unrecognized class you need to do a little #define before and after the message map part....

#define CMDIChildWnd CXTPMDIFrameWnd

BEGIN_MESSAGE_MAP( CMyFrame, CMDIChildWnd )

#undef CMDIChildWnd

try that out, see if it helps.




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