Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ValidateRgn

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function validates the client area within a region by removing the region from the current update region of the specified window.


BOOL WINAPI ValidateRgn(
  HWND hWnd,
  HRGN hRgn
);
hWnd

[in] Handle to the window for which you want to modify the update region.

hRgn

[in] Handle to a region that defines the area that you want to remove from the update region.

Set this parameter to NULL to remove the entire client area.

A nonzero value indicates success.

Zero indicates failure.

You must create the specified region by calling a region function, such as ExtCreateRegion.

ValidateRgn assumes that the region coordinates are client coordinates.

The BeginPaint function validates the entire client area.

Do not call ValidateRect or ValidateRgn if you require validation of a portion of the update region before the next WM_PAINT message is generated.

Headerwindows.h
Librarycoredll.lib
Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.