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


MFCDialogVariableExtender - интерфейс

Provides access to a variable code element in an existing MFC dialog box.

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

Синтаксис

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

Заметки

The MFCDialogVariableExtender object represents a variable code element of an existing MFC dialog box, providing access to the properties of that variable.

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

To retrieve the validation ranges for a specific variable in an MFC dialog box, see MFCDialogNumberVariableExtender object or MFCDialogStringVariableExtender object.

Примеры

This example displays the control ID representing each variable of the dialog box implemented by the CAboutDlg class.

' Macro code.
Sub GetControlIDs()
    Dim vcCM as VCCodeModel
    Dim vcClass as VCCodeClass
    Dim mfcVar as VCCodeVariable
    vcCM = DTE.Solution.Item(1).CodeModel
    vcClass = vcCM.Classes.Find("CAboutDlg")
    For Each vcVar in vcCM.Variables
        MsgBox(vcVar.Extender("MFCDialogVariable").ControlID)
    Next
End Sub

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

См. также

Ссылки

MFCDialogVariableExtender - члены

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