IOleUIObjInfo::SetViewInfo
Sets the view information associated with the object.
HRESULT SetViewInfo(
DWORD dwObject,
| //32-bit object identifier
|
HGLOBAL hMetaPict,
| //New icon for the object
|
DWORD dvAspect,
| //New display aspect
|
int nCurrentScale,
| //New scale
|
BOOL bRelativeToOrig
| //Scale relative to origin
|
);
|
|
Parameters
dwObject
A 32-bit identifier for the object.
hMetaPict
The new icon for the object.
dvAspect
The object's new display aspect or view.
nCurrentScale
The object's new scale.
bRelativeToOrig
The scale of the object, relative to the origin. This value is TRUE if the new
scale should be relative to the original scale of the object. If FALSE,
nCurrentScale applies to the object's current size.
Return Values
S_OK
Successfully returned link information.
E_FAIL
Unable to return link information.
E_INVALIDARG
One or more invalid arguments.
E_OUTOFMEMORY
Insufficient memory.
E_ACCESSDENIED
Insufficient access permissions.
Comment
Notes To Implementors
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
DVASPECT
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database