IProvideDynamicClassInfo::FreezeShape

Freezes the dynamic type information so that no more changes are permitted to the object.

HRESULT FreezeShape();

Parameters

None.

Return Values

The designer returns one of the following values:

Return Value Meaning
S_OK The method succeeded.
E_FAIL The method failed for an unknown reason.
E_OUTOFMEMORY Not enough memory is available to complete the operation.

Comments

The designer implements this method.

The host calls FreezeShape immediately after loading the run-time object, so the type information for the run-time object cannot change.

Example

The following example sets a global flag, m_fFreezeShape, to indicate that the type information cannot change any further. After the current object is destroyed and a new instance is created, the flag is cleared.

STDMETHODIMP CMyDesigner::FreezeShape
(
  void
)
{
   m_fFreezeShape = TRUE;
  return S_OK;
}