0
点赞
收藏
分享

微信扫一扫

截取被遮住的内容

Graphics::TBitmap* Bmp=new Graphics::TBitmap;
 
Bmp->Width=Dwidth;//目标宽高
Bmp->Height=Dheight;
 
SendMessage(DHandle,WM_PAINT,WPARAM(Bmp->Canvas->Handle),0);
 
//--------------------------------------------------------------------------------
 
SendMessage( Form2->Handle, WM_PRINT, (WPARAM)Canvas->Handle,
            (LPARAM)PRF_NONCLIENT | PRF_CLIENT | PRF_CHILDREN | PRF_CHECKVISIBLE);

举报

相关推荐

0 条评论