From 687b91d266990129fbbb8c21d92fa4298b458352 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 27 Oct 2006 13:08:05 +0000 Subject: [PATCH] compilation fix: wxGenericCollapsiblePane needs wxButton and wxStaticLine git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/collpaneg.h | 4 ++++ src/generic/collpaneg.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/wx/generic/collpaneg.h b/include/wx/generic/collpaneg.h index 843b8d6dc2..c8466c690d 100644 --- a/include/wx/generic/collpaneg.h +++ b/include/wx/generic/collpaneg.h @@ -12,6 +12,8 @@ #ifndef _WX_COLLAPSABLE_PANE_H_GENERIC_ #define _WX_COLLAPSABLE_PANE_H_GENERIC_ +#if wxUSE_BUTTON && wxUSE_STATLINE + // forward declared class WXDLLEXPORT wxButton; class WXDLLEXPORT wxStaticLine; @@ -102,5 +104,7 @@ private: DECLARE_EVENT_TABLE() }; +#endif // wxUSE_BUTTON && wxUSE_STATLINE + #endif // _WX_COLLAPSABLE_PANE_H_GENERIC_ diff --git a/src/generic/collpaneg.cpp b/src/generic/collpaneg.cpp index 8985914aa1..2f1ea156b4 100644 --- a/src/generic/collpaneg.cpp +++ b/src/generic/collpaneg.cpp @@ -19,6 +19,8 @@ #include "wx/collpane.h" +#if wxUSE_BUTTON && wxUSE_STATLINE + #ifndef WX_PRECOMP #include "wx/toplevel.h" #include "wx/button.h" @@ -236,3 +238,5 @@ void wxGenericCollapsiblePane::OnSize(wxSizeEvent& WXUNUSED(event)) // this is very important to make the pane window layout show correctly m_pPane->Layout(); } + +#endif // wxUSE_BUTTON && wxUSE_STATLINE -- 2.45.2