I use next code to snap the form behind my vcl :
i := SaveDC(DC);
p := GetScreenClient( Self );
p.x := -p.x;
p.y := -p.y;
MoveWindowOrg( DC, p.x, p.y );
SendMessage( Parent.Handle, WM_ERASEBKGND, DC, 0 );
SendMessage( Parent.Handle, WM_PAINT, DC, 0 );
BitBlt( Temp.Canvas.Handle, 0, 0, Width, Height, DC, Left, Top, SRCCOPY );
RestoreDC( DC, i );
ReleaseDC( Handle, DC );
My problem is that I can snap just the form or images but no controls like grids, editboxes or buttons.
How can I get an image of all vcls behind my vcl ? I don't wish to move my vcl, snap the desktop and then put my vcl back.
I need a code that can render the background directly.
Thanks in advance!