ValidateRgn

2.x

  void ValidateRgn(hwnd, hrgn)    
  HWND hwnd; /* handle of window, */  
  HRGN hrgn; /* handle of valid region */

The ValidateRgn function validates the client area within the given region by removing the region from the current update region of the specified window.

Parameters

hwnd

Identifies the window whose update region is to be modified.

hrgn

Identifies a region that defines the area to be removed from the update region. If this parameter is NULL, the entire client area is removed.

Return Value

This function does not return a value.

Comments

The given region must have been created by a region function. The region coordinates are assumed to be client coordinates.

The BeginPaint function automatically validates the entire client area. Neither the ValidateRect nor the ValidateRgn function should be called if a portion of the update region must be validated before the next WM_PAINT message is generated.

See Also

BeginPaint, InvalidateRect, InvalidateRgn, ValidateRect