Udostępnij za pośrednictwem


IVsUIShell2 Interface

Definition

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

public interface class IVsUIShell2
public interface class IVsUIShell2
__interface IVsUIShell2
[System.Runtime.InteropServices.Guid("4E6B6EF9-8E3D-4756-99E9-1192BAAD5496")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsUIShell2
[<System.Runtime.InteropServices.Guid("4E6B6EF9-8E3D-4756-99E9-1192BAAD5496")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsUIShell2 = interface
Public Interface IVsUIShell2
Attributes

Remarks

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.

Methods

CreateGlyphImageButton(IntPtr, UInt16, Int32, Int32, UInt32, IVsImageButton)

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

CreateGradient(UInt32, IVsGradient)

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

CreateIconImageButton(IntPtr, IntPtr, UInt32, IVsImageButton)

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

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

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

GetOpenFileNameViaDlgEx(VSOPENFILENAMEW[], String)

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

GetSaveFileNameViaDlgEx(VSSAVEFILENAMEW[], String)

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

GetVSCursor(UInt32, IntPtr)

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

GetVSSysColorEx(Int32, UInt32)

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

IsAutoRecoverSavingCheckpoints(Int32)

Indicates whether unsaved documents are currently being auto-saved.

SaveItemsViaDlg(UInt32, VSSAVETREEITEM[])

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

VsDialogBoxParam(IntPtr, UInt32, IntPtr, IntPtr)
VsDialogBoxParam(UInt32, UInt32, UInt32, Int32)

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

Applies to