Sets the view information associated with the object.
HRESULT SetViewInfo(
DWORD dwObject, //Unique 32-bit object identifier
HGLOBAL hMetaPict, //New icon for the object
DWORD dvAspect, //New display aspect for the objec
int nCurrentScale, //New scale for the objec
BOOL bRelativeToOrig //Scale of the object relative to origin
);
This method supports the standard return values E_FAIL, E_INVALIDARG, and E_OUTOFMEMORY, as well as the following:
You should apply the new attributes (icon, aspect, and scale) to the object. If bRelativeToOrig is set to TRUE, nCurrentScale (in percentage units) applies to the original size of the object before it was scaled. If bRelativeToOrig is FALSE, nCurrentScale applies to the object's current size.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in oledlg.h.