| WinEndPaint | Function (ROM Call 0x501)

AMS 2.00 or higher | wingraph.h

void WinEndPaint (WINDOW *w);

Restores the screen state saved with WinBeginPaint in given window.

`WinEndPaint(&w);` does nothing more than `RestoreScrState(&(w.savedScrState));`
WinEndPaint is always paired with WinBeginPaint, and it is commonly used to respond a CM_DEACTIVATE message.

Uses: RestoreScrState

See also: WinBeginPaint