This document is archived and information here might be outdated. Recommended version. |
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
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.