The InvalidateRgn function invalidates the client area within the specified region by adding it to the current update region of a window. The invalidated region, along with all other areas in the update region, is marked for painting when the next WM_PAINT message occurs.
BOOL InvalidateRgn(
HWND hWnd, |
// handle of window with changed update region |
HRGN hRgn, |
// handle of region to add |
BOOL bErase |
// erase-background flag |
); |
The return value is always nonzero.
Invalidated areas accumulate in the update region until the next WM_PAINT message is processed or until the region is validated by using the ValidateRect or ValidateRgn function.
Windows sends a WM_PAINT message to a window whenever its update region is not empty and there are no other messages in the application queue for that window.
The specified region must have been created by using one of the region functions.
If the bErase parameter is TRUE for any part of the update region, the background in the entire region is erased, not just in the specified part.
BeginPaint, InvalidateRect, ValidateRect, ValidateRgn, WM_PAINT
file: /Techref/os/win/api/win32/func/src/f50_7.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/28 07:26,
13.59.183.186:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/os/win/api/win32/func/src/f50_7.htm"> InvalidateRgn</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.