如果做截屏,截取本程序界面上的波形,如果程序最小化了还能借到么?
TRect r,r1;
int i,j,temp;
Graphics::TBitmap *Dest= new Graphics::TBitmap();
GetWindowRect(Form1->Handle ,&r);
Dest->Width=Image2->Width ;
Dest->Height=Image2->Height;
DC=GetWindowDC(Form1->CppWebBrowser1->Handle);
BitBlt (Dest->Canvas->Handle ,0,0,Dest->Width,Dest->Height,DC,160,118,SRCCOPY);
Image2->Picture->Bitmap =Dest;
Image2->Picture->SaveToFile("c:\\aa.bmp");

