|  | 
| CXTPDialogBase<CXTResizeDialog> disappears | 
| Post Reply   | 
| Author | |
| mgampi   Senior Member     Joined: 14 July 2003 Status: Offline Points: 1210 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| mgampi   Senior Member     Joined: 14 July 2003 Status: Offline Points: 1210 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| mgampi   Senior Member     Joined: 14 July 2003 Status: Offline Points: 1210 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| 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 |