Invalidate(FALSE),Invalidate(TRUE)是什么意思

ToConnection 2012-08-24 10:11:11
Invalidate(FALSE),Invalidate(TRUE),不明白,到底有什么用,看别人写的代码,里有Invalidate(FALSE),Invalidate(TRUE),感觉写与不写都一样,到底有什么用,不明白
...全文
304 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
向立天 2013-03-15
  • 打赏
  • 举报
回复
您好 我是本版版主 此帖已多日无人关注 请您及时结帖 如您认为问题没有解决可按无满意结帖处理 另外本版设置了疑难问题汇总帖 并已在版面置顶 相关规定其帖子中有说明 您可以根据规定提交您帖子的链接 如您目前不想结帖只需回帖说明 我们会删除此结帖通知 见此回复三日内无回应 我们将强制结帖 相关规定详见界面界面版关于版主结帖工作的具体办法
Occam's_Razor 2012-08-24
  • 打赏
  • 举报
回复
Invalidate(TRUE)
擦除背景

Invalidate(FALSE)
不擦除背景
再见理想~ 2012-08-24
  • 打赏
  • 举报
回复
http://blog.csdn.net/yangsen2016/article/details/1618733
Gloveing 2012-08-24
  • 打赏
  • 举报
回复
CWindow::Invalidate
This method invalidates the entire client area and passes NULL for the RECT parameter to the InvalidateRect Windows CE function.

BOOL Invalidate(
BOOL bErase = TRUE);
Parameters
bErase
Boolean that specifies whether the background within the update region is to be erased when the update region is processed. If this parameter is TRUE, the background is erased when the BeginPaint function is called. If this parameter is FALSE, the background remains unchanged.

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧