#include "wx/frame.h"
-extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[];
+extern WXDLLIMPEXP_DATA_CORE(const char) wxStatusLineNameStr[];
-class WXDLLEXPORT wxMDIClientWindow;
-class WXDLLEXPORT wxMDIChildFrame;
+class WXDLLIMPEXP_FWD_CORE wxMDIClientWindow;
+class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame;
// ---------------------------------------------------------------------------
// wxMDIParentFrame
// ---------------------------------------------------------------------------
-class WXDLLEXPORT wxMDIParentFrame : public wxFrame
+class WXDLLIMPEXP_CORE wxMDIParentFrame : public wxFrame
{
public:
wxMDIParentFrame();
bool m_parentFrameActive;
private:
- friend class WXDLLEXPORT wxMDIChildFrame;
+ friend class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame;
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
// wxMDIChildFrame
// ---------------------------------------------------------------------------
-class WXDLLEXPORT wxMDIChildFrame : public wxFrame
+class WXDLLIMPEXP_CORE wxMDIChildFrame : public wxFrame
{
public:
wxMDIChildFrame() { Init(); }
// Implementation only from now on
// -------------------------------
+ wxMDIParentFrame* GetMDIParent() const
+ {
+ return wxStaticCast(wxFrame::GetParent(), wxMDIParentFrame);
+ }
+
// Handlers
bool HandleMDIActivate(long bActivate, WXHWND, WXHWND);
bool HandleWindowPosChanging(void *lpPos);
// wxMDIClientWindow
// ---------------------------------------------------------------------------
-class WXDLLEXPORT wxMDIClientWindow : public wxWindow
+class WXDLLIMPEXP_CORE wxMDIClientWindow : public wxWindow
{
public:
wxMDIClientWindow() { Init(); }