EnableRedraw

This method is used to allow changes to be redrawn or to prevent them from being redrawn in the Information Window.

 

HRESULT EnableRedraw (

[in] BOOL bEnable)

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

Catastrophic failure.

TE_E_MPTNOTLOADED

An MPT file must be loaded in TerraExplorer for this method to work.

TE_E_NOLICENSE

You are running TerraExplorer Viewer and therefore do not have permission to work with this interface.

Remarks:

When adding several groups and objects at once, it is best to call EnableRedraw (FALSE), before starting to add items to the tree, along with EnableRedraw(TRUE), after you have finished adding those items. This prevents a flashing effect and the constant repainting of the tree in the Information Window. Instead, EnableRedraw repaints the tree once all the items have been added.