//---------------------------------------------------------------------------
//in
Form's source...
__fastcall TForm1::TForm1(TComponent*
Owner)
:
TForm(Owner)
{
FullCanvas
= new TCanvas();
}
void __fastcall
TForm1::FormPaint(TObject *Sender)
{
//
GetWindowDC returns a handle to the entire
// Form's device context, including the caption area
FullCanvas->Handle
= GetWindowDC(Handle);
FullCanvas->Draw(100,
5, Image1->Picture->Graphic);
ReleaseDC(Handle,
FullCanvas->Handle);
}
__fastcall TForm1::~TForm()
{
delete
FullCanvas;
}
|