VCDialogExtender Interface

An object providing access to an existing dialog box class in a solution.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

'Declaration
<GuidAttribute("DA629811-626D-41B8-B999-908D2669E4D2")> _
Public Interface VCDialogExtender
[GuidAttribute("DA629811-626D-41B8-B999-908D2669E4D2")]
public interface VCDialogExtender
[GuidAttribute(L"DA629811-626D-41B8-B999-908D2669E4D2")]
public interface class VCDialogExtender
[<GuidAttribute("DA629811-626D-41B8-B999-908D2669E4D2")>]
type VCDialogExtender =  interface end
public interface VCDialogExtender

The VCDialogExtender type exposes the following members.

Properties

  Name Description
Public property DialogID Gets the ID of the dialog box class represented by the object.

Top

Methods

  Name Description
Public method Initialize Infrastructure. Microsoft internal use only.

Top

Remarks

The VCDialogExtender object represents an existing dialog box class, allowing access to the ID of the dialog box.

Note

The dialog can be either an MFC or ATL dialog box class.

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Examples

This example displays the value of the ID for the dialog box implemented by the CAboutDlg class.

Sub GetDialogID()
    Dim vcCM as VCCodeModel
    Dim vcClass as VCCodeClass
    vcCM = DTE.Solution.Item(1).CodeModel
    vcClass = vcCM.Classes.Find("CAboutDlg")
    MsgBox(vcClass.Extender("VCDialog").DialogID)
End Sub

See Also

Reference

Microsoft.VisualStudio.VCCodeModel Namespace