]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/richtext/richtext.cpp
Avoid problems with events that might be sent during creation of controls.
[wxWidgets.git] / samples / richtext / richtext.cpp
index 1daf45bee9f2659e588f16f6745ab5e4c02eb056..12af81541b5ac83b57e736543a374b65cf6ee857 100644 (file)
@@ -61,6 +61,7 @@
 #include "wx/richtext/richtextctrl.h"
 #include "wx/richtext/richtextstyles.h"
 #include "wx/richtext/richtextxml.h"
+#include "wx/richtext/richtexthtml.h"
 
 // ----------------------------------------------------------------------------
 // resources
@@ -720,7 +721,7 @@ void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event))
         path,
         filename,
         filter,
-        wxOPEN);
+        wxFD_OPEN);
 
     if (dialog.ShowModal() == wxID_OK)
     {
@@ -758,7 +759,7 @@ void MyFrame::OnSaveAs(wxCommandEvent& WXUNUSED(event))
         path,
         filename,
         filter,
-        wxSAVE);
+        wxFD_SAVE);
 
     if (dialog.ShowModal() == wxID_OK)
     {