![]() |
Add Event Wizard doesnt work |
Post Reply
|
| Author | |
RickSaada
Newbie
Joined: 08 November 2004 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: Add Event Wizard doesnt workPosted: 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 |
|
![]() |
|
spike
Groupie
Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |