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)

[GuidAttribute("933D7295-58FD-47AE-9029-C87D569C74DD")]
public interface VCDialogExtender

NameDescription
System_CAPS_pubpropertyDialogID

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

NameDescription
System_CAPS_pubmethodInitialize(Object, IExtenderSite, Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft internal use only.

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

System_CAPS_noteNote

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.

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
Return to top
Show: