why not to send WM_PAINT manually

后端 未结 4 1762
一生所求
一生所求 2020-12-18 09:01

I have read that I should never send WM_PAINT manually and should call InvalidateRect instead but didn\'t found anything about why not, however. So

4条回答
  •  离开以前
    2020-12-18 09:52

    You don't have any information about other program's windows uncovering your windows. Only the operating system has this information. So you don't really know all the time when or where your window needs to be repainted. WM_PAINT and BeginPaint provide this missing information.

提交回复
热议问题