读书人

win32 设立无效区

发布时间: 2012-09-29 10:30:01 作者: rapoo

win32 设置无效区?
我需要让窗口上一个矩形区域以外的部分形成无效区怎么设置。?

InvalidateRect 可以让 指定区域变成无效区
我需要 指定区域以外的部分变成无效区,和 InvalidateRect 正好相反。

求方法....

[解决办法]
GetClientRect -》CRect减去矩形区域得到新的CRect -》InvalidateRect
-------------------------------------
operator Subtracts the given offsets from CRect or deflates CRect and returns the resulting CRect.
[解决办法]

探讨
引用:

GetClientRect -》CRect减去矩形区域得到新的CRect -》InvalidateRect
-------------------------------------
operator Subtracts the given offsets from CRect or deflates CRect and returns the resulti……

[解决办法]
这个估计得4个RECT吧,或者组合成HRGN用InvalidateRgn

读书人网 >C++

热点推荐