Windows中对窗口进行剪切
1.先创建剪切的区域:
HRGN rgnRect1 = CreateRectRgn(10,10,100,100); //x1, y1, x2, y2
2.设置窗口:
SetWindowRgn((hWnd, rgnRect1 , bRedraw); //可见则bRedraw设为TRUE.
参考文章:
新战场:https://blog.csdn.net/Stephen___Qin
1.先创建剪切的区域:
HRGN rgnRect1 = CreateRectRgn(10,10,100,100); //x1, y1, x2, y2
2.设置窗口:
SetWindowRgn((hWnd, rgnRect1 , bRedraw); //可见则bRedraw设为TRUE.
参考文章: