MFCDialogStringVariableExtender - интерфейс
Provides access to the maximum character range of a string-type variable in an MFC dialog box.
Пространство имен: Microsoft.VisualStudio.VCCodeModel
Сборка: Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)
Синтаксис
'Декларация
<GuidAttribute("DF69B068-2447-11D7-8BF6-00B0D03DAA06")> _
Public Interface MFCDialogStringVariableExtender
'Применение
Dim instance As MFCDialogStringVariableExtender
[GuidAttribute("DF69B068-2447-11D7-8BF6-00B0D03DAA06")]
public interface MFCDialogStringVariableExtender
[GuidAttribute(L"DF69B068-2447-11D7-8BF6-00B0D03DAA06")]
public interface class MFCDialogStringVariableExtender
public interface MFCDialogStringVariableExtender
Заметки
The MFCDialogStringVariableExtender object represents the validation range of a string-type dialog box variable.
Примеры
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.