Print Page | Close Window

CXTPDialogBase<CXTResizeDialog> disappears

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=16199
Printed Date: 31 January 2025 at 4:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDialogBase<CXTResizeDialog> disappears
Posted By: mgampi
Subject: CXTPDialogBase<CXTResizeDialog> disappears
Date 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



Replies:
Posted By: mgampi
Date 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


Posted By: Oleg
Date 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


Posted By: mgampi
Date 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



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