Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IDType Property
Collapse the table of content
Expand the table of content

MFCDialogVariableExtender.IDType Property 

Gets the type of the dialog variable.

Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in microsoft.visualstudio.vccodemodel.dll)

vsCMMFCDialogVariableIDType IDType { get; }
/** @property */
vsCMMFCDialogVariableIDType get_IDType ()

function get IDType () : vsCMMFCDialogVariableIDType

Property Value

A vsCMMFCDialogVariableIDType enumeration value indicating the dialog variable type.

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
End Sub

See Samples for Code Model Extensibility for information on how to compile and run this sample.

© 2015 Microsoft