Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Sets the view information associated with the object.
HRESULT SetViewInfo(
[in] DWORD dwObject,
[in] HGLOBAL hMetaPict,
[in] DWORD dvAspect,
[in] int nCurrentScale,
[in] BOOL bRelativeToOrig
);
[in] dwObject
Unique identifier for the object.
[in] hMetaPict
The new icon.
[in] dvAspect
The new display aspect or view.
[in] nCurrentScale
The new scale.
[in] bRelativeToOrig
The new scale of the object, relative to the origin. This value is TRUE if the scale should be relative to the original scale of the object. If FALSE, nCurrentScale applies to the object's current size.
This method returns S_OK on success. Other possible return values include the following.
Return code | Description |
---|---|
|
Insufficient access permissions. |
|
The operation failed. |
|
The specified identifier is invalid. |
|
There is insufficient memory available for this operation. |
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | oledlg.h |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today