이성제 님이 쓰신 글 : : 소스가 이렇게 있는데요 : void __fastcall TForm1::Button(TObject *Sender) : { : TButton *btn = (TButton*)Sender; : TForm *frm = (TForm*)btn->Parent; : frm->Tile(); : frm->Close(); : } : : 이부분에 소스를 이해할수가 없습니다. : : 으흠.. : : Tile() 이 하는 일이 뭔지.. : : 아 아무튼 전혀 이해할수가 없습니다. : : 설명좀 해주세욥!!
Tile은 MDI 폼에서 생성된 자식 윈도우들의 위치를 정렬하는 것입니다.
Arranges MDI child forms so that they are all the same size.
void __fastcall Tile(void);
Description Use Tile to arrange MDI child forms so that they are all the same size. Tiled forms completely fill up the client area of the parent form. How the forms arrange themselves depends upon the values of their TileMode properties. Tile works only if the form is an MDI parent form (that is, if the form뭩 FormStyle property is fsMDIForm).
위의 코드에서는 저 메서드가 특별한 다른일은 안하네요. 주석처리 하셔도 결과는 같습니다.
아래 처럼 바꾸면 Form1 창 안에서 새로운 창들이 동적 생성 됩니다. TForm1.FormStyle=fsMDIForm; f->FormStyle=fsMDIChild;
|