MFCDialogNumberVariableExtender::MaxValue Property
Visual Studio 2015
Gets or sets the maximum value for the numeric-type variable represented by the parent object.
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
This example displays the minimum range of the first dialog box variable, implemented by the CAboutDlg class.
Sub GetRanges() Dim vcCM as VCCodeModel Dim vcClass as VCCodeClass Dim mfcVar as VCCodeVariable vcCM = DTE.Solution.Item(1).CodeModel vcClass = vcCM.Classes.Find("CAboutDlg") vcVar = vcCM.Variables.Item(1) MsgBox(vcVar.Extender("MFCDialogNumberVariable").MaxValue) End Sub
See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.
Show: