IOleUIObjInfo::GetViewInfo

Gets the view information associated with the object.

HRESULT GetViewInfo(

DWORD dwObject,
//32-bit object identifier
HGLOBAL FAR * phMetaPict,
//Object's current icon
DWORD * pdvAspect,
//Object's current aspect
int * pnCurrentScale
//Object's current scale
);

Parameters

dwObject

A 32-bit identifier for the object.

phMetaPict

The object's current icon. Could be NULL, indicating that the caller is not interested in the object's current presentation.

pdvAspect

The object's current aspect. Could be NULL, indicating that the caller is not interested in the object's current aspect, i.e., DVASPECT_ICONIC or DVASPECT_CONTENT.

pnCurrentScale

The object's current scale. Could be NULL, indicating that the caller is not interested in the current scaling factor applied to the object in the container's view.

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 must fill in the object's current icon, aspect, and scale.

See Also

OLEUIVIEWPROPS

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