make wxFrame a wxControlContainer too, so that it behaves in the same way as wxDialog

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-06-13 16:29:23 +00:00
parent 6b6bd02c07
commit 049908c573
9 changed files with 38 additions and 30 deletions

View File

@@ -20,6 +20,7 @@
#include "wx/nonownedwnd.h"
#include "wx/iconbndl.h"
#include "wx/containr.h"
// the default names for various classes
extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[];
@@ -206,9 +207,6 @@ public:
// reverts to the "permanent" default as soon as this temporary default
// item loses focus
// used to reset default if pointing to removed child
virtual void RemoveChild(wxWindowBase *child);
// get the default item, temporary or permanent
wxWindow *GetDefaultItem() const
{ return m_winTmpDefault ? m_winTmpDefault : m_winDefault; }
@@ -306,6 +304,7 @@ protected:
DECLARE_NO_COPY_CLASS(wxTopLevelWindowBase)
DECLARE_EVENT_TABLE()
WX_DECLARE_CONTROL_CONTAINER();
};