RedrawWindow

The RedrawWindow function updates the specified rectangle or region in a window's client area.

Declaration

Declare Function RedrawWindow Lib "user32" Alias "RedrawWindow" (ByVal hwnd As Long, lprcUpdate As RECT, ByVal hrgnUpdate As Long, ByVal fuRedraw As Long) As Long

Variations

Declare Function RedrawWindow Lib "user32" (ByVal hwnd As Long, lprcUpdate As Any, ByVal hrgnUpdate As Long, ByVal fuRedraw As Long) As Long

Parameters

hwnd
Handle to the window to be redrawn. If this parameter is NULL, the desktop window is updated.

lprcUpdate
A RECT structure containing the coordinates of the update rectangle. This parameter is ignored if the hrgnUpdate parameter identifies a region.

hrgnUpdate
Handle to the update region. If both the hrgnUpdate and lprcUpdate parameters are NULL, the entire client area is added to the update region.

fuRedraw
Specifies one or more redraw flags. This parameter can be a combination of flags that invalidate or validate a window, control repainting, and control which windows are affected by RedrawWindow.

RDW_ERASE

RDW_FRAME

RDW_INTERNALPAINT

RDW_INVALIDATE

RDW_NOERASE

RDW_NOFRAME

RDW_NOINTERNALPAINT

RDW_VALIDATE

RDW_ERASENOW

RDW_UPDATENOW

RDW_ALLCHILDREN

RDW_NOCHILDREN

Return value

If the function succeeds, the return value is nonzero otherwise the return value is zero.

For more Information, contact us via email at info@earlsoft.co.uk.