IVsUIShell2 Interface

 

Extends the functionality of the IVsUIShell interface by providing access to additional window functionalities.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

[GuidAttribute("4E6B6EF9-8E3D-4756-99E9-1192BAAD5496")]
[InterfaceTypeAttribute(1)]
public interface IVsUIShell2

NameDescription
System_CAPS_pubmethodCreateGlyphImageButton(IntPtr, UInt16, Int32, Int32, UInt32, IVsImageButton)

Creates a mixed image/text button using the specified glyph as the image.

System_CAPS_pubmethodCreateGradient(UInt32, IVsGradient)

Returns an IVsGradient object on which to draw a gradient of a specified type.

System_CAPS_pubmethodCreateIconImageButton(IntPtr, IntPtr, UInt32, IVsImageButton)

Creates a mixed image/text button using the specified icon as the image.

System_CAPS_pubmethodGetDirectoryViaBrowseDlgEx(VSBROWSEINFOW[], String, String, String, VSNSEBROWSEINFOW[])

Brings up the Browse dialog box to obtain a directory name (possibly in a namespace extension).

System_CAPS_pubmethodGetOpenFileNameViaDlgEx(VSOPENFILENAMEW[], String)

Brings up the File Open dialog box to obtain a specified open file.

System_CAPS_pubmethodGetSaveFileNameViaDlgEx(VSSAVEFILENAMEW[], String)

Brings up the Save As dialog box to obtain a save file name.

System_CAPS_pubmethodGetVSCursor(UInt32, IntPtr)

Returns a handle to a cursor of a specified cursor type.

System_CAPS_pubmethodGetVSSysColorEx(Int32, UInt32)

Returns the RGB settings for the specified system color used by the environment.

System_CAPS_pubmethodIsAutoRecoverSavingCheckpoints(Int32)

Indicates whether unsaved documents are currently being auto-saved.

System_CAPS_pubmethodSaveItemsViaDlg(UInt32, VSSAVETREEITEM[])

Handles the saving of one or more documents through the Save changes to following items dialog box.

System_CAPS_pubmethodVsDialogBoxParam(UInt32, UInt32, UInt32, Int32)

Loads and displays the specified dialog template using the specified dialog callback procedure.

This interface provides methods for:

  • Creating buttons that combine images and text.

  • Creating gradients for filling window backgrounds.

  • Obtain system color values.

  • Extended browsing for folders.

  • Extended browsing to open or save files.

  • Handling custom dialog boxes.

Notes to Implementers:

Implemented by the environment.

Notes to Callers:

Obtain the IVsUIShell2 interface by calling the QueryInterface method in the IVsUIShell interface which in turn is obtained from the SVsUIShell service.

Return to top
Show: