Click to return to the Reusing Browser Technology home page    
IShellUIHelper::AddChanne...     IShellUIHelper::AddFavori...     IShellUIHelper Interface    
Web Workshop  |  Reusing Browser Technology

IShellUIHelper::AddDesktopComponent Method


Adds an item to the Active Desktop™.

Syntax

HRESULT AddDesktopComponent(
    BSTR strURL,
    BSTR strType,
    VARIANT *Left,
    VARIANT *Top,
    VARIANT *Width,
    VARIANT *Height
);

Parameters

strURL
String value that contains the URL of the desktop item.
strType
String value that contains the desktop item type.
Left
Address of a VARIANT structure that contains the coordinate of the left edge of the desktop item. Passing this address is optional.
Top
Address of a VARIANT structure that contains the coordinate of the top edge of the desktop item. Passing this address is optional.
Width
Address of a VARIANT structure that contains the width of the desktop item. Passing this address is optional.
Height
Address of a VARIANT structure that contains the height of the desktop item. Passing this address is optional.

Return Value

Returns S_OK if successful, or an error code otherwise.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.