这个重绘函数功能是什么啊?
他和UpdateData有什么区别?

解决方案 »

  1.   

    我的理解是UpdateData()是针对变量的。
    SetRedraw()是针对界面上的各个控件的。
      

  2.   

    那SetRedraw()是怎么使用?请教!!!
      

  3.   

    Example
    // Updating a control or window with large amounts of data may cause 
    // flicker. In such cases it may be better to turn off drawing//...   //m_list is a member of type CListCtrl
       m_List.SetRedraw(FALSE);  // turn drawing off regardless of list mode//...
    // Update control
    //...   m_List.SetRedraw(TRUE);  // turn drawing back on and update the window   // invalidate the entire control, force painting
       m_List.Invalidate();
       m_List.UpdateWindow();