X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/013e1feecd8d517a5b73cd1c0e37843e84c2619c..9513c5b609740c15322f2284e5e8b9609eeaa069:/samples/dialogs/dialogs.cpp diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 1a6f39515a..2441a60904 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -38,6 +38,7 @@ #include "wx/progdlg.h" #include "wx/fdrepdlg.h" #include "wx/busyinfo.h" +#include "wx/image.h" #define wxTEST_GENERIC_DIALOGS_IN_MSW 0 @@ -123,7 +124,9 @@ MyCanvas *myCanvas = (MyCanvas *) NULL; // `Main program' equivalent, creating windows and returning main app frame bool MyApp::OnInit() { +#if wxUSE_IMAGE wxInitAllImageHandlers(); +#endif #if defined(__WXGTK__) && defined(wxUSE_UNICODE) wxConvCurrent = &wxConvLibc; @@ -137,7 +140,7 @@ bool MyApp::OnInit() // Make a menubar wxMenu *file_menu = new wxMenu; - + file_menu->Append(DIALOGS_CHOOSE_COLOUR, _T("&Choose colour")); #if defined(__WXMSW__) && wxTEST_GENERIC_DIALOGS_IN_MSW