001
07.09.2002, 12:11 Uhr
Uwe
C/C++ Master (Administrator)
|
Hallo Tobi, ungetestet, da ich den Builder immer noch nicht installiert habe *gruebel*.
C++: |
HDC dc = GetDC(NULL); Graphics::TCanvas *ScreenCanvas = new Graphics::TCanvas(); ScreenCanvas->Handle = dc; Image1->AutoSize = true; Image1->Center = true; Image1->Top = 0; Image1->Left = 0; Image1->Picture->Bitmap->Width = Screen->Width; Image1->Picture->Bitmap->Height= Screen->Height; TRect rect = Rect(0,0,Screen->Width, Screen->Height); Image1->Picture->Bitmap->Canvas->CopyRect(rect, ScreenCanvas, rect);
delete ScreenCanvas; ReleaseDC(NULL,dc);
|
-- "Es ist schwierig, ein Programm wirklich idiotensicher zu machen, weil Idioten so genial sind."
Bis dann... Uwe |