Поделиться через


VCDialogExtender - интерфейс

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

Пространство имен:  Microsoft.VisualStudio.VCCodeModel
Сборка:  Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)

Синтаксис

'Декларация
<GuidAttribute("DF69B066-2447-11D7-8BF6-00B0D03DAA06")> _
Public Interface VCDialogExtender
'Применение
Dim instance As VCDialogExtender
[GuidAttribute("DF69B066-2447-11D7-8BF6-00B0D03DAA06")]
public interface VCDialogExtender
[GuidAttribute(L"DF69B066-2447-11D7-8BF6-00B0D03DAA06")]
public interface class VCDialogExtender
public interface VCDialogExtender

Заметки

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

ПримечаниеПримечание.

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

См. также

Ссылки

VCDialogExtender - члены

Microsoft.VisualStudio.VCCodeModel - пространство имен