PyCWnd.LockWindowUpdate

LockWindowUpdate()

Disables drawing in the given window

MFC References

CWnd::LockWindowUpdate