Compartir a través de


VCDialogExtender Interface

Definition

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

public interface class VCDialogExtender
public interface class VCDialogExtender
__interface VCDialogExtender
[System.Runtime.InteropServices.Guid("3F7D4F43-8311-4CE2-A472-62833FF83125")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface VCDialogExtender
[<System.Runtime.InteropServices.Guid("3F7D4F43-8311-4CE2-A472-62833FF83125")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type VCDialogExtender = interface
Public Interface VCDialogExtender
Attributes

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  

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.

Properties

DialogID

Gets the ID of the dialog box class represented by the object.

Methods

Initialize(Object, IExtenderSite, Int32)

Microsoft internal use only.

Applies to