win32gui.InvalidateRect

InvalidateRect(hWnd, Rect, Erase)

Invalidates a rectangular area of a window and adds it to the window's update region

Parameters

hWnd : PyHANDLE

Handle to the window

Rect : PyRECT

Client coordinates defining area to be redrawn. Use None for entire client area.

Erase : boolean

Indicates if background should be erased