Partager via


MFCDialogNumberVariableExtender Interface

Definition

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

public interface class MFCDialogNumberVariableExtender
public interface class MFCDialogNumberVariableExtender
__interface MFCDialogNumberVariableExtender
[System.Runtime.InteropServices.Guid("F81981C9-2B7A-46AB-8981-0823D9DE0268")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface MFCDialogNumberVariableExtender
[<System.Runtime.InteropServices.Guid("F81981C9-2B7A-46AB-8981-0823D9DE0268")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type MFCDialogNumberVariableExtender = interface
Public Interface MFCDialogNumberVariableExtender
Attributes

Examples

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.

Remarks

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

Properties

MaxValue

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

MinValue

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

Methods

Initialize(Object, IExtenderSite, Int32)

Microsoft Internal Use Only.

Applies to