MFCDialogNumberVariableExtender Interface
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

MFCDialogNumberVariableExtender Interface 

Provides access to the minimum and maximum range of a numeric-type variable in an MFC dialog box.

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

[GuidAttribute("DF69B069-2447-11D7-8BF6-00B0D03DAA06")] 
public interface MFCDialogNumberVariableExtender
/** @attribute GuidAttribute("DF69B069-2447-11D7-8BF6-00B0D03DAA06") */ 
public interface MFCDialogNumberVariableExtender
GuidAttribute("DF69B069-2447-11D7-8BF6-00B0D03DAA06") 
public interface MFCDialogNumberVariableExtender

The MFCDialogNumberVariableExtender object represents the validation range of a string-type dialog box variable.

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").MinValue)
End Sub

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

Show:
© 2016 Microsoft