virtual bool Draw(wxDC&);
virtual bool IsModified() const { return m_documentModified; }
- virtual void Modify(bool mod) { m_documentModified = mod; }
+ virtual void Modify(bool mod);
virtual bool AddView(wxView *view);
virtual bool RemoveView(wxView *view);
{
public:
// default ctor, use Create() after it
- wxDocChildFrameAnyBase() { m_win = NULL; }
+ wxDocChildFrameAnyBase()
+ {
+ m_childDocument = NULL;
+ m_childView = NULL;
+ m_win = NULL;
+ }
// full ctor equivalent to using the default one and Create(0
wxDocChildFrameAnyBase(wxDocument *doc, wxView *view, wxWindow *win)
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr)
{
- if ( !BaseClass::Create(parent, id, title, pos, size, style, name) )
+ if ( !wxDocChildFrameAnyBase::Create(doc, view, this) )
return false;
- if ( !wxDocChildFrameAnyBase::Create(doc, view, this) )
+ if ( !BaseClass::Create(parent, id, title, pos, size, style, name) )
return false;
this->Connect(wxEVT_ACTIVATE,
// for dll-interface class 'wxDocChildFrame'" -- this is bogus as the
// template will be DLL-exported but only once it is used as base class
// here!
+ #pragma warning (push)
#pragma warning (disable:4275)
#endif
};
#ifdef __VISUALC6__
- #pragma warning (default:4275)
+ #pragma warning (pop)
#endif
// ----------------------------------------------------------------------------