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.
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.
This function does not return a value.
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.