Udostępnij za pośrednictwem


VCWizCtlClass.GetOpenFileNameViaDlg(String, String, String, String) Method

Definition

Gets the name of a file to open using a dialog box.

public:
 virtual System::String ^ GetOpenFileNameViaDlg(System::String ^ bstrDlgTitle, System::String ^ bstrInitialDir, System::String ^ bstrFilter, System::String ^ bstrFileName) = Microsoft::VisualStudio::VsWizard::IVCWizCtlUI::GetOpenFileNameViaDlg;
public:
 virtual Platform::String ^ GetOpenFileNameViaDlg(Platform::String ^ bstrDlgTitle, Platform::String ^ bstrInitialDir, Platform::String ^ bstrFilter, Platform::String ^ bstrFileName) = Microsoft::VisualStudio::VsWizard::IVCWizCtlUI::GetOpenFileNameViaDlg;
 virtual std::wstring GetOpenFileNameViaDlg(std::wstring const & bstrDlgTitle, std::wstring const & bstrInitialDir, std::wstring const & bstrFilter, std::wstring const & bstrFileName);
[System.Runtime.InteropServices.DispId(1610743848)]
public virtual string GetOpenFileNameViaDlg (string bstrDlgTitle, string bstrInitialDir, string bstrFilter, string bstrFileName);
[<System.Runtime.InteropServices.DispId(1610743848)>]
abstract member GetOpenFileNameViaDlg : string * string * string * string -> string
override this.GetOpenFileNameViaDlg : string * string * string * string -> string
Public Overridable Function GetOpenFileNameViaDlg (bstrDlgTitle As String, bstrInitialDir As String, bstrFilter As String, bstrFileName As String) As String

Parameters

bstrDlgTitle
String

Required. A string containing the dialog box title.

bstrInitialDir
String

Required. A string containing the initial directory for the Open File dialog box.

bstrFilter
String

Required. A string containing the file filter criteria displayed in the Files of type edit box (for example, Visual C++ Header files (*.h)) in the Open File dialog box.

bstrFileName
String

Required. A string containing the name of the file display in the File Name edit box in the Open File dialog box.

Returns

Implements

Attributes

Applies to