|
I use Delphi. Recently, I want to know about VC and want to make an MDI program, but I am confused by what documents, views, and frameworks. I don’t know how to start.
My idea is very simple. Create a main MDI window and two sub-windows (some controls on the top, such as ListCtrl, Button, etc.). No documents or views are needed.
Just create a new Form in Delphi, set its FormStyle property to fsMDIChild, and then write the following code in the main window to display the word window.
Form2:=TForm2.Create(Application);
Form2.Show;
Write Action:=caFree in the OnClose function of Form2 to click the "X" button on the Form2 form to close the Form2 form.
my question:
1. How to create and design Form2 sub-forms in VC.
2. How to call my Form2 form in the main window.
3. How to close the Form2 form.
Note: I am very good, please write clearly step by step, don't just write one or two sentences. Thank you. |
|