13,822
社区成员
发帖
与我相关
我的任务
分享
void __fastcall TForm1::Button1Click(TObject *Sender)
{
int Newlong=GetWindowLong(this->Handle,GWL_STYLE);
TForm2 *F2;
F2=new TForm2(NULL);
F2->ParentWindow=GetDesktopWindow();
F2->Caption="窗体1";
SetWindowLong(F2->Handle,GWL_STYLE,Newlong);
F2->Show();
TForm3 *F3;
F3=new TForm3(NULL);
F3->ParentWindow=GetDesktopWindow();
F3->Caption="窗体2";
SetWindowLong(F3->Handle,GWL_STYLE,Newlong);
F3->Show();
}