Windows中对窗口进行剪切

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

posted @ 2020-09-08 16:20  心媛意码  阅读(527)  评论(0编辑  收藏  举报