PyCWnd.InvalidateRect

InvalidateRect(rect, bErase)

Invalidates an area of a window.

Parameters

rect=(0,0,0,0) : (left, top, right, bottom)

Rectangle to be updated. If default param is used, the entire window is invalidated.

bErase=1 : int

Specifies whether the background within the update region is to be erased.

MFC References

CWnd::InvalidateRect