From d482d5e468af38b66e8181760d5214c518255355 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 19 Aug 2010 00:06:12 +0000 Subject: [PATCH] Compilation fix for non-PCH build in wxGenericRichMessageDialog code. Move IsCheckBoxChecked() to the .cpp file where wxCheckBox is fully defined and not just forward declared (at least when not using PCH). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/richmsgdlgg.h | 7 +------ src/generic/richmsgdlgg.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/wx/generic/richmsgdlgg.h b/include/wx/generic/richmsgdlgg.h index fdff492ec3..9d031df435 100644 --- a/include/wx/generic/richmsgdlgg.h +++ b/include/wx/generic/richmsgdlgg.h @@ -28,12 +28,7 @@ public: m_detailsPane(NULL) { } - virtual bool IsCheckBoxChecked() const - { - // This function can be called before the dialog is shown and hence - // before the check box is created. - return m_checkBox? m_checkBoxValue : m_checkBox->IsChecked(); - } + virtual bool IsCheckBoxChecked() const; protected: wxCheckBox *m_checkBox; diff --git a/src/generic/richmsgdlgg.cpp b/src/generic/richmsgdlgg.cpp index 9f2efd9e51..06b226d4f6 100644 --- a/src/generic/richmsgdlgg.cpp +++ b/src/generic/richmsgdlgg.cpp @@ -18,6 +18,7 @@ #if wxUSE_RICHMSGDLG #ifndef WX_PRECOMP + #include "wx/checkbox.h" #include "wx/stattext.h" #include "wx/sizer.h" #endif @@ -84,4 +85,11 @@ void wxGenericRichMessageDialog::AddMessageDialogDetails(wxSizer *sizer) } } +bool wxGenericRichMessageDialog::IsCheckBoxChecked() const +{ + // This function can be called before the dialog is shown and hence before + // the check box is created. + return m_checkBox? m_checkBoxValue : m_checkBox->IsChecked(); +} + #endif // wxUSE_RICHMSGDLG -- 2.47.2