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 |
); |
Parameters
Return Values
This method supports the standard return values E_FAIL, E_INVALIDARG, and E_OUTOFMEMORY, as well as the following:
Remarks
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.
See Also