Files
wxWidgets/src/common/docmdi.cpp
Vadim Zeitlin c48bdb0c28 Refactor wxDocParentFrame and wxDocMDIParentFrame to share common base class.
Use the same approach as for the child frames: add a base template class which
allows wxDocParentFrame to inherit from wxFrame and wxDocMDIParentFrame from
wxMDIParentFrame while still allowing to reuse the common code.

This reduces code duplication and should make implementing parent AUI document
frame easier as well, see #8945.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-12 14:34:18 +00:00

28 lines
794 B
C++

/////////////////////////////////////////////////////////////////////////////
// Name: src/common/docmdi.cpp
// Purpose: Frame classes for MDI document/view applications
// Author: Julian Smart, Vadim Zeitlin
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) 1997 Julian Smart
// (c) 2010 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#if wxUSE_MDI_ARCHITECTURE
#include "wx/docmdi.h"
IMPLEMENT_CLASS(wxDocMDIParentFrame, wxMDIParentFrame)
IMPLEMENT_CLASS(wxDocMDIChildFrame, wxMDIChildFrame)
#endif // wxUSE_DOC_VIEW_ARCHITECTURE