]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dialogs/dialogs.cpp
Don't create a bitmap with dimensions <= 0...
[wxWidgets.git] / samples / dialogs / dialogs.cpp
index 1420859da4904b88ce579435e62445962dd76649..f39e33f67a4c434a89b3ed0b3fe453cc1cac7220 100644 (file)
@@ -399,9 +399,9 @@ void MyFrame::MultiChoice(wxCommandEvent& WXUNUSED(event) )
 
 void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) )
 {
 
 void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) )
 {
-//    wxFAIL_MSG( "Test assert" );
-
-    wxFileDialog dialog(this, "Testing open file dialog", "", "", "*.txt", 0);
+    wxFileDialog dialog(this, "Testing open file dialog",
+                        "", "",
+                        "C++ files (*.h;*.cpp)|*.h;*.cpp");
 
     if (dialog.ShowModal() == wxID_OK)
     {
 
     if (dialog.ShowModal() == wxID_OK)
     {