Cant add event handlers to CMainFrame |
Post Reply |
Author | |
bevpet
Newbie Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
Post Options
Thanks(0)
Posted: 01 April 2005 at 1:03pm |
Hi all, strange problem...i think. just created a new project (vc2003/w2kpro) using the xtreme toolkit with basic options. When i goto add a menu event handler to my cmainframe class, it won't let me, every other class allows the event to be created.. then i created a stand mfc project with no xtreme template, and tried to add a menu event to the cmainframe and it allowed me to !! is it just me still asleep or just stupid, any suggestions greatly appreciated. Thanks Peter |
|
bevpet
Newbie Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
Post Options
Thanks(0)
|
Addendum: just noticed, that every extreme sample program also exhibits the same problem with the mainframe class, in which you can't access/add to the class. if change public CXTPMDIFrameWnd back to public MDIFrameWnd, the class overrides and messages are accessible again. is their something wrong with my installation or files ?? thanks, any help appreciated Peter |
|
ICBM
Groupie Joined: 15 January 2004 Location: New Zealand Status: Offline Points: 57 |
Post Options
Thanks(0)
|
This is 'normal' behaviour for Visual Studio. As soon as you change the base class to something that is not part of standard MFC, various useful functions are disabled including adding command handlers. I believe it used to be possible (with VC6) to make some changes to a config file to add your own classes, but it's been a long time... Anyhoo, this is not a fault of the codejock libraries.
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 442 |
Post Options
Thanks(0)
|
If anonyone knows of a workaround for this, I'd love to hear about it. It's a bit of a pain in the arse, in my opinion.
- MR |
|
bevpet
Newbie Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
Post Options
Thanks(0)
|
thanks for clarifying that ICBM yes in vc6 its possible. just started using vc2003 past month or so. thanks Microsoft |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
As workaround you can add Toolkit project to solution, rebuild your application, and remove it again (if you want).
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
dennisV
Senior Member Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
|
I actually always add the XTP to the solution, because it then allows me to get Intellisense working as well, plus I might want to do some weird optimizations |
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
bevpet
Newbie Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
Post Options
Thanks(0)
|
Hi Guys, thank's for the info, that worked like a charm.
Thanks again, Peter
|
|
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 |