This document is archived and information here might be outdated.  Recommended version.


IScreenDisplay.UpdateWindow Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IS > IScreenDisplay Interface > IScreenDisplay.UpdateWindow Method
ArcGIS Developer Help

IScreenDisplay.UpdateWindow Method

Forces a redraw.

[Visual Basic .NET]
Public Sub UpdateWindow ( _
)
[C#]
public void UpdateWindow (
);
[C++]
HRESULT UpdateWindow(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Use UpdateWindow to process pending Windows WM_PAINT messages immediately.  This may be the case if you have a routine that takes a long time to execute and you need the window to refresh while the code executes.  Typically, no drawing will occur until all your code has been executed and control returns to the ArcMap's message loop and the WM_PAINT message is handled.  UpdateWindow forces the window to invalidate by sending a WM_PAINT message directly to the window; the normal ArcMap message queue is bypassed.

See UpdateWindow in MSDN for more information.

See Also

IScreenDisplay Interface