Freezes a certain aspect of the object's presentation so that it does not change until the IViewObject::Unfreeze method is called. The most common use of this method is for banded printing.
HRESULT Freeze(
DWORD dwAspect, //How the object is to be represented
LONG lindex, //Part of the object of interest in the draw
//operation
void * pvAspect, //Always NULL
DWORD * pdwFreeze //Points to location containing an identifying
//key
);
The IViewObject::Freeze method causes the view object to freeze its drawn representation until a subsequent call to IViewObject::Unfreeze releases it. After calling IViewObject::Freeze, successive calls to IViewObject::Draw with the same parameters produce the same picture until IViewObject::Unfreeze is called.
IViewObject::Freeze is not part of the persistent state of the object and does not continue across unloads and reloads of the object.
The most common use of this method is for banded printing.
While in a frozen state, view notifications are not sent. Pending view notifications are deferred to the subsequent call to IViewObject::Unfreeze.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in oleidl.h.
DVASPECT, IViewObject::Unfreeze