Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Add Event Wizard doesn’t work
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add Event Wizard doesn’t work

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


Joined: 08 November 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote RickSaada Quote  Post ReplyReply Direct Link To This Post Topic: Add Event Wizard doesn’t work
    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

Back to Top
spike View Drop Down
Groupie
Groupie


Joined: 13 May 2003
Location: United States
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote spike Quote  Post ReplyReply Direct Link To This Post 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.

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.