From f517634c464a51cd58d75a3899d51797a21733de Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Mon, 16 Feb 2004 21:35:54 +0000 Subject: [PATCH 1/1] Included required wx/image.h and added wxUSE_IMAGE guard. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dialogs/dialogs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 1a6f39515a..50c34424f4 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; -- 2.45.2