TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormPaint(TObject *Sender)
{
Graphics::TBitmap* pBmp = new Graphics::TBitmap();
pBmp->LoadFromFile("Vista Luna.bmp");
TRect MyRect = TRect(0,0,Width,Height);
Form1->Canvas->StretchDraw(MyRect,pBmp);
delete pBmp;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormResize(TObject *Sender)
{
Form1->Refresh();
}
//---------------------------------------------------------------------------