Home > Back-end >  Questions about the MDI child window display
Questions about the MDI child window display

Time:10-02

Platform BCB6.
I found a problem, problem description,
Form1 is the main form MDI, Form2 is an MDI child window, Form2 transferred to manually create in the options at the same time,
In Form1 put a Button Button, click this Button to appear Form2. I added in the Button Button to create Form2 statements, the following
TForm * pform;
Pform=new TForm2 (this);
Pform - & gt; Show ();
Question, if the third sentence statement pform - & gt; Show (); , Form2 or display properly, I show function in Form2 lower-middle breakpoints, found that the show Form2 function after execution to the second statement is executed, I am strange, this pform - & gt; Show (); Have a purpose??? Please down to solve,

CodePudding user response:

Pform - & gt; Show (); Is at the time of pform hidden,

CodePudding user response:

reference 1st floor songhtao response:
pform - & gt; Show (); Be used at the time of pform hidden,

Thank you for your reply, but you didn't answer the reason why I want to know, why I dynamically create a form, also didn't show will be displayed,

CodePudding user response:

Nobody answer? Good sad, demon elder brother ah
  • Related