This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IT > ITool Interface > ITool.Refresh Method (ArcObjects .NET 10.5 SDK) |
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(
long hdc
);
[C++]
Parameters hdc [in] hdc is a parameter of type long
hDC is the handle to the display context which just got refreshed in the application.
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.