X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..24aab8e81a8627802e4111d9c99a50ece8d0026e:/src/generic/msgdlgg.cpp?ds=inline diff --git a/src/generic/msgdlgg.cpp b/src/generic/msgdlgg.cpp index 869cb97c4d..f63df3e469 100644 --- a/src/generic/msgdlgg.cpp +++ b/src/generic/msgdlgg.cpp @@ -29,6 +29,7 @@ #include "wx/icon.h" #include "wx/sizer.h" #include "wx/app.h" + #include "wx/settings.h" #endif #include @@ -37,10 +38,9 @@ #define __WX_COMPILING_MSGDLGG_CPP__ 1 #include "wx/msgdlg.h" #include "wx/artprov.h" -#include "wx/settings.h" #if wxUSE_STATLINE - #include "wx/statline.h" + #include "wx/statline.h" #endif // ---------------------------------------------------------------------------- @@ -70,6 +70,7 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent, wxBoxSizer *icon_text = new wxBoxSizer( wxHORIZONTAL ); +#if wxUSE_STATBMP // 1) icon if (style & wxICON_MASK) { @@ -102,11 +103,14 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent, else icon_text->Add( icon, 0, wxCENTER ); } +#endif // wxUSE_STATBMP +#if wxUSE_STATTEXT // 2) text icon_text->Add( CreateTextSizer( message ), 0, wxALIGN_CENTER | wxLEFT, 10 ); topsizer->Add( icon_text, 1, wxCENTER | wxLEFT|wxRIGHT|wxTOP, 10 ); +#endif // wxUSE_STATTEXT #if wxUSE_STATLINE // 3) static line @@ -156,4 +160,3 @@ void wxGenericMessageDialog::OnCancel(wxCommandEvent& WXUNUSED(event)) } #endif // wxUSE_MSGDLG && !defined(__WXGTK20__) -