Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTTabView: add dialogs/views to it?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTabView: add dialogs/views to it?

 Post Reply Post Reply
Author
Message
ddyer View Drop Down
Groupie
Groupie
Avatar

Joined: 01 December 2003
Location: United States
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddyer Quote  Post ReplyReply Direct Link To This Post Topic: CXTTabView: add dialogs/views to it?
    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

 

Back to Top
ddyer View Drop Down
Groupie
Groupie
Avatar

Joined: 01 December 2003
Location: United States
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddyer Quote  Post ReplyReply Direct Link To This Post 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.

 

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.125 seconds.