Print Page | Close Window

CXTTabView: add dialogs/views to it?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=285
Printed Date: 31 May 2024 at 6:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTabView: add dialogs/views to it?
Posted By: ddyer
Subject: CXTTabView: add dialogs/views to it?
Date Posted: 09 December 2003 at 8:57am

I've got a handy CXTResizeFormView based on a dialog that I would like to have added to a CXTTabView window. 

I attempt the following in the tabbedview sample from XT (of course, I added a resizeformview dialog to the sample app first):

AddView(_T("My form"), RUNTIME_CLASS(CFormTest), NULL, NULL, -1, 1);

It compiles fine but crashes inside the tabctrl's CreateTabView.

 

I don't care if I use a resizeformview or a resizedialog.  If there is a way to use a resizedialog Im all for it.  Any ideas?

 

Thanks,

Doug

 




Replies:
Posted By: ddyer
Date Posted: 09 December 2003 at 1:39pm

Figured it out.  I forgot to make the dialog a child rather than a popup.

 

Also, if anyone does this, you want to capture the OnShowWindow message and call the resize Size() method so the dialog will fill the window properly if someone clicks on the tab to show the dialog after they have resized the main window.

 




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