Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - CXTPDialogBase<CXTResizeDialog> disappears
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPDialogBase<CXTResizeDialog> disappears

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDialogBase<CXTResizeDialog> disappears
    Posted: 15 February 2010 at 4:54pm
Hi;

I defined a class CPaneBaseDlg : public CXTPDialogBase<CXTResizeDialog>
as the child of a docking pane.
When pressing the VK_RETURN or VK_ESCAPE keys the pane content disappears.
I know this is due to dialog message processing resulting in a call to EndDialog.
So I tried to replace virtual OnOK() and OnCancel() methods. But these never get called.
No I'm totally confused.

Any help is very welcome!
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2010 at 5:04pm
Hi;

an additional info:

The dialog is declared as

std::auto_ptr<CXTOfficeBorder<CPaneBaseDlg> > myDialog;

When I remove the CXTPOfficeBorder<> template, the virtual functions get called!
Crazy...

Any ideas?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2010 at 7:48am

hm. what you have in CXTOfficeBorder ?

In 12.1.1 sources I can find only CXTPOfficeBorder. Is it your class ? But indeed strange.  try recompile whole project. sometimes VC doesn't see new virtual functions.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2010 at 7:52am
Hi Oleg;

Sorry, I ment CXTPOfficeBorder<> !
I tried recompiling the whole source without any change. Only after removing CXTPOfficeBorder<> it worked.
Very strange, indeeed!
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
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.