次の方法で共有


GweBypassCoredllThunk_t::InvalidateRect_I (Windows Embedded CE 6.0)

1/6/2010

This method adds a rectangle to the update region of the specified window. The update region represents the portion of the client area of the window that must be redrawn.

Syntax

static BOOL WINAPI InvalidateRect_I(
  HWND hwndThis,
  LPCRECT prc,
  BOOL fErase
);

Parameters

  • hwndThis
    [in] Handle to the window whose update region has changed. If this parameter is NULL, the system invalidates and redraws all windows, and sends the WM_ERASEBKGND message to the window procedure before the function returns.
  • prc
    [in] Long pointer to a RECT structure that contains the client coordinates of the rectangle to be added to the update region. If this parameter is NULL, the entire client area is added to the update region.
  • fErase
    [in] Boolean that specifies whether the background within the update region is to be erased when the update region is processed. If this parameter is TRUE, the background is erased when the GweBypassCoredllThunk_t::BeginPaint_I method is called. If this parameter is FALSE, the background remains unchanged.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

This method is an internal version of the InvalidateRect function.

The hWnd parameter cannot be NULL.

The invalidated areas accumulate in the update region until the region is processed when the next WM_PAINT message occurs or until the region is validated by using the GweBypassCoredllThunk_t::ValidateRect_I method.

The system sends a WM_PAINTmessage to a window whenever its update region is not empty and there are no other messages in the application queue for that window.

If the bErase parameter is TRUE for any part of the update region, the background is erased in the entire region, not just in the given part.

Requirements

Header gwebypasscoredllthunk.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

GweBypassCoredllThunk_t
InvalidateRect
GweBypassCoredllThunk_t::BeginPaint_I
GweBypassCoredllThunk_t::ValidateRect_I
WM_ERASEBKGND
WM_PAINT
RECT