CXTTabView: add dialogs/views to it? |
Post Reply |
Author | |
ddyer
Groupie Joined: 01 December 2003 Location: United States Status: Offline Points: 40 |
Post Options
Thanks(0)
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
|
|
ddyer
Groupie Joined: 01 December 2003 Location: United States Status: Offline Points: 40 |
Post Options
Thanks(0)
|
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.
|
|
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 |