1.先创建剪切的区域:
HRGN rgnRect1 = CreateRectRgn(10,10,100,100); //x1, y1, x2, y2
2.设置窗口:
SetWindowRgn((hWnd, rgnRect1 , bRedraw); //可见则bRedraw设为TRUE.
参考文章:
https://blog.csdn.net/caimouse/article/details/1793702
https://blog.csdn.net/oceanlucy/article/details/49620549