Invalidate(FALSE),Invalidate(TRUE),不明白,到底有什么用,看别人写的代码,里有Invalidate(FALSE),Invalidate(TRUE),感觉写与不写都一样,到底有什么用,不明白

解决方案 »

  1.   

    http://blog.csdn.net/yangsen2016/article/details/1618733
      

  2.   

    Invalidate(TRUE)
    擦除背景Invalidate(FALSE)
    不擦除背景
      

  3.   

    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.