Condividi tramite


COleControl::InvalidateControl

Forces the control to redraw itself.

void InvalidateControl( 
   LPCRECT lpRect = NULL, 
   BOOL bErase = TRUE  
);

Parameters

  • lpRect
    A pointer to the region of the control to be invalidated.

  • bErase
    Specifies whether the background within the update region is to be erased when the update region is processed.

Remarks

If lpRect has a NULL value, the entire control will be redrawn. If lpRect is not NULL, this indicates the portion of the control's rectangle that is to be invalidated. In cases where the control has no window, or is currently not active, the rectangle is ignored, and a call is made to the client site's IAdviseSink::OnViewChange member function. Use this function instead of CWnd::InvalidateRect or InvalidateRect.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::Refresh

Other Resources

COleControl Members