]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/render/render.cpp
Check for menu title being non-empty when appending it to the menu bar.
[wxWidgets.git] / samples / render / render.cpp
index 7ac3ecd5bd8d113f644217316a3f79bd2561a5a0..7cb63278bee4df57e1d208d917367c498625b818 100644 (file)
@@ -35,6 +35,7 @@
     #include "wx/log.h"
     #include "wx/msgdlg.h"
     #include "wx/icon.h"
+    #include "wx/image.h"
 #endif
 
 #include "wx/apptrait.h"
@@ -297,6 +298,13 @@ bool MyApp::OnInit()
     if ( !wxApp::OnInit() )
         return false;
 
+#ifdef __WXOSX__
+    // currently the images used by DrawTitleBarBitmap() are hard coded as PNG
+    // images inside the library itself so we need to enable PNG support to use
+    // this function
+    wxImage::AddHandler(new wxPNGHandler);
+#endif // OS X
+
     // create the main application window
     new MyFrame;