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


ITool.Refresh Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IT > ITool Interface > ITool.Refresh Method
ArcGIS Developer Help

ITool.Refresh Method

Occurs when a screen display in the application is refreshed.

[Visual Basic .NET]
Public Sub Refresh ( _
    ByVal hdc As Integer _
)
[C#]
public void Refresh (
    int hdc
);
[C++]
HRESULT Refresh(
  OLE_HANDLE hdc
);
[C++]
Parameters
hdc [in]

hdc is a parameter of type OLE_HANDLE

Product Availability

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

Description

hDC is the handle to the display context which just got refreshed in the application.

Remarks

When implementing ITool to create a custom tool, write the code in the Refresh method that performs some action when a screen display in the application is refreshed while this tool is the active tool. When the current screen display in the application is refreshed, the handle to the device context that is associated with that screen display is passed into the Refresh method as an argument.

See Also

ITool Interface