问个基础的问题
动态创建时,
例如:TForm1 *myform = new TForm1(XXX);
XXX会指出TComponent Owner& ,请问XXX是指什么?
[解决办法]
容器的指针
Pass a single Component as a parameter to provide the form with an Owner (usually the application) that is responsible for freeing it. This is the most commonly used constructor syntax.
当Owner 容器销毁释放form跟着自动释放
[解决办法]
容器,一般的写Application即可
[解决办法]
呵呵我因为是直接在当前窗口显示,所以直接写this了,有时也不写,比如声明一个自定义类对象时