win32 设置无效区?
我需要让窗口上一个矩形区域以外的部分形成无效区怎么设置。?
InvalidateRect 可以让 指定区域变成无效区
我需要 指定区域以外的部分变成无效区,和 InvalidateRect 正好相反。
求方法....
[解决办法]
GetClientRect -》CRect减去矩形区域得到新的CRect -》InvalidateRect
-------------------------------------
operator – Subtracts the given offsets from CRect or deflates CRect and returns the resulting CRect.
[解决办法]