MFCDialogStringVariableExtender Interface
Provides access to the maximum character range of a string-type variable in an MFC dialog box.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
‘선언
<GuidAttribute("956895B4-61FE-4196-935D-41BFC80AF306")> _
Public Interface MFCDialogStringVariableExtender
[GuidAttribute("956895B4-61FE-4196-935D-41BFC80AF306")]
public interface MFCDialogStringVariableExtender
[GuidAttribute(L"956895B4-61FE-4196-935D-41BFC80AF306")]
public interface class MFCDialogStringVariableExtender
[<GuidAttribute("956895B4-61FE-4196-935D-41BFC80AF306")>]
type MFCDialogStringVariableExtender = interface end
public interface MFCDialogStringVariableExtender
The MFCDialogStringVariableExtender type exposes the following members.
Properties
Name | Description | |
---|---|---|
MaxChars | Gets or sets the maximum characters for the string-type variable represented by the parent object. |
Top
Methods
Name | Description | |
---|---|---|
Initialize | Infrastructure. Microsoft Internal Use Only. |
Top
Remarks
The MFCDialogStringVariableExtender object represents the validation range of a string-type dialog box variable.
Examples
This example displays the maximum character range of the first dialog box variable, implemented by the CAboutDlg class.
Sub GetMaxChars()
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("MFCDialogStringVariable").MaxChars)
End Sub
See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.