From 25f70bc4a15f46059d2586b8627815978977e711 Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Fri, 18 Aug 2006 08:05:41 +0000 Subject: [PATCH] add #if wxUSE_AUI to get VC6 with no wxUSE_AUI to compile git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/aui/tabmdi.h | 3 +++ src/aui/tabmdi.cpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/wx/aui/tabmdi.h b/include/wx/aui/tabmdi.h index a0ce4eced0..4cf3d76ef9 100644 --- a/include/wx/aui/tabmdi.h +++ b/include/wx/aui/tabmdi.h @@ -12,6 +12,8 @@ #ifndef _WX_AUITABMDI_H_ #define _WX_AUITABMDI_H_ +#if wxUSE_AUI + // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- @@ -248,5 +250,6 @@ private: DECLARE_DYNAMIC_CLASS(wxTabMDIClientWindow) DECLARE_EVENT_TABLE() }; +#endif // wxUSE_AUI #endif // _WX_AUITABMDI_H_ diff --git a/src/aui/tabmdi.cpp b/src/aui/tabmdi.cpp index 404de75f20..a995ee8462 100644 --- a/src/aui/tabmdi.cpp +++ b/src/aui/tabmdi.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/generic/tabmdi.cpp +// Name: src/aui/tabmdi.cpp // Purpose: Generic MDI (Multiple Document Interface) classes // Author: Hans Van Leemputten // Modified by: Benjamin I. Williams / Kirix Corporation @@ -24,6 +24,7 @@ #pragma hdrstop #endif +#if wxUSE_AUI #if wxUSE_MDI #include "wx/aui/tabmdi.h" @@ -680,4 +681,5 @@ void wxTabMDIClientWindow::OnSize(wxSizeEvent& evt) ((wxTabMDIChildFrame *)GetPage(pos))->ApplyMDIChildFrameRect(); } +#endif //wxUSE_AUI #endif // wxUSE_MDI -- 2.45.2