首页 > 其他分享 >截取被遮住的内容

截取被遮住的内容

时间:2023-09-19 11:03:04浏览次数:33  
标签:Canvas PRF Handle 遮住 截取 Bmp 内容 SendMessage WM

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);

标签:Canvas,PRF,Handle,遮住,截取,Bmp,内容,SendMessage,WM
From: https://blog.51cto.com/u_15487030/7523329

相关文章