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("39B791DD-DAE8-41B7-B1F2-C6ADF9A6C6B5")]
public interface MFCDialogNumberVariableExtender

NameDescription
System_CAPS_pubpropertyMaxValue

Gets or sets the maximum value for the numeric-type variable represented by the parent object.

System_CAPS_pubpropertyMinValue

Gets or sets the minimum value for the numeric-type variable represented by the parent object.

NameDescription
System_CAPS_pubmethodInitialize(Object, IExtenderSite, Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

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 How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Return to top
Show: