Board index » cppbuilder » More details from Tom
Tom Halvorsen
![]() CBuilder Developer |
More details from Tom2007-04-16 06:22:48 PM cppbuilder79 First, thank you for trying to help me. I will try to explane. I have a Borland C++ 4, application which I try to convert into C++ BDS 2006. This is an MDI-application and I have three different child-windows. Each of these child-windows run their own use-case If you understand what I mean, and the user can select to start one or all of them at the time. They can all run simoustainly. Inside the child-windows I display a dialog box Which is sutable to handle the actual use-case. I dont remember but I think I once saw this example on the internett. It was at least 10 years back. I would like to(I think I have to) use a simular techniqe on my new(updatet application). Here is part of my old code. TMDIClient* mdiClient = TYPESAFE_DOWNCAST(GetMainWindow()->GetClientWindow(), TMDIClient); if (mdiClient) { // Here I create my dialog TransSosiFilDlg* DlgSosiFil = new TransSosiFilDlg(GetMainWindow()->GetClientWindow()); // Here I create a new child window. Se the parameters. DLG_TRANSFILSOSI is the dialogs unique number in the .res-file TWsktransMDIChild* DlgChild = new TWsktransMDIChild(*mdiClient, DLG_TRANSFILSOSI, "Chils windows Caption", (TWindow*)DlgSosiFil); DlgChild->Create(); } I really hope I can do this with C++ BDS 2006. If you need more info please let me know. tom |