Function:
LockWindowUpdate(HWNDhWndLock)

 

Description:
Disables or reenables drawing in the specified window. Only one window can be locked at a time.

 

Parameters:
hWndLock: Specifies the window in which drawing will be disabled. If this parameter is NULL, drawing in the locked window is enabled..

 

Returns:
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.

 

Example:
Select the icon to download the sample lockWinUpdate.a5p. This file demonstrates the difference between locking the window and not.