我写的C++Builder的代码,老兄,你自已改吧!
void CopyScreen(Graphics::TBitmap *bmp1,int top,int left,int right,int bottom)
{
bmp1->Width=right-left;
bmp1->Height=bottom-top;
HDC ScreenDC;
ScreenDC=GetDC(0);
BitBlt(bmp1->Canvas->Handle, 0, 0, right-left,bottom-top, ScreenDC,left,top, SRCCOPY);
ReleaseDC(0, ScreenDC);
TPoint mousepos;
GetCursorPos(&mousepos);
TIcon *ic=new TIcon();
ic->Handle=GetCursor();
bmp1->Canvas->Draw(mousepos.x,mousepos.y,ic);
delete ic;
}