]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxCHANGE_DIR test
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Nov 2001 14:32:01 +0000 (14:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Nov 2001 14:32:01 +0000 (14:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialogs/dialogs.cpp

index 406643cf1dd6d07d2bcbf496e45a9830288a5a19..2a41303048dbf8212c4bb72f8f092d3bc860afe7 100644 (file)
@@ -418,9 +418,14 @@ void MyFrame::MultiChoice(wxCommandEvent& WXUNUSED(event) )
 
 void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) )
 {
-    wxFileDialog dialog(this, "Testing open file dialog",
-                        "", "",
-                        "C++ files (*.h;*.cpp)|*.h;*.cpp");
+    wxFileDialog dialog
+                 (
+                    this,
+                    _T("Testing open file dialog"),
+                    _T(""),
+                    _T(""),
+                    _T("C++ files (*.h;*.cpp)|*.h;*.cpp")
+                 );
 
     if (dialog.ShowModal() == wxID_OK)
     {
@@ -447,7 +452,7 @@ void MyFrame::FileOpen2(wxCommandEvent& WXUNUSED(event) )
                                     _T(""), _T(""),
                                     s_extDef,
                                     _T("Waveform (*.wav)|*.wav|Plain text (*.txt)|*.txt|All files (*.*)|*.*"),
-                                    0,
+                                    wxCHANGE_DIR,
                                     this
                                    );