- ,wxWindowID vId
- ,const wxString& rsTitle
- ,const wxPoint& rPos = wxDefaultPosition
- ,const wxSize& rSize = wxDefaultSize
- ,long lStyle = wxDEFAULT_FRAME_STYLE
- ,const wxString& rsName = wxFrameNameStr
- )
+ ,wxWindowID vId
+ ,const wxString& rsTitle
+ ,const wxPoint& rPos = wxDefaultPosition
+ ,const wxSize& rSize = wxDefaultSize
+ ,long lStyle = wxDEFAULT_FRAME_STYLE
+ ,const wxString& rsName = wxFrameNameStr
+ )
- virtual void Maximize(bool bMaximize = TRUE);
- virtual bool IsMaximized(void) const;
- virtual void Iconize(bool bIconize = TRUE);
- virtual bool IsIconized(void) const;
- virtual void Restore(void);
virtual bool ShowFullScreen( bool bShow
,long lStyle = wxFULLSCREEN_ALL
);
virtual bool ShowFullScreen( bool bShow
,long lStyle = wxFULLSCREEN_ALL
);
// TODO: should this go into a wxFrameworkSettings class perhaps?
static void UseNativeStatusBar(bool bUseNative)
// TODO: should this go into a wxFrameworkSettings class perhaps?
static void UseNativeStatusBar(bool bUseNative)
- WXHWND GetToolTipCtrl(void) const { return m_hwndToolTip; }
- void SetToolTipCtrl(WXHWND hHwndTT) { m_hwndToolTip = hwndTT; }
+ WXHWND GetToolTipCtrl(void) const { return m_hWndToolTip; }
+ void SetToolTipCtrl(WXHWND hHwndTT) { m_hWndToolTip = hHwndTT; }
+ void SetClient(WXHWND c_Hwnd);
+ void SetClient(wxWindow* c_Window);
+ wxWindow *GetClient();
+
+ friend MRESULT EXPENTRY wxFrameWndProc(HWND hWnd,ULONG ulMsg, MPARAM wParam, MPARAM lParam);
+ friend MRESULT EXPENTRY wxFrameMainWndProc(HWND hWnd,ULONG ulMsg, MPARAM wParam, MPARAM lParam);
+
// a plug in for MDI frame classes which need to do something special when
// the menubar is set
virtual void InternalSetMenuBar(void);
// a plug in for MDI frame classes which need to do something special when
// the menubar is set
virtual void InternalSetMenuBar(void);
+ //
+ // Handles to child windows of the Frame, and the frame itself,
+ // that we don't have child objects for (m_hWnd in wxWindow is the
+ // handle of the Frame's client window!
+ //
+ WXHWND m_hTitleBar;
+ WXHWND m_hHScroll;
+ WXHWND m_hVScroll;
+
+ //
+ // Swp structures for various client data
+ // DW: Better off in attached RefData?
+ //
+ SWP m_vSwpTitleBar;
+ SWP m_vSwpMenuBar;
+ SWP m_vSwpHScroll;
+ SWP m_vSwpVScroll;
+ SWP m_vSwpStatusBar;
+ SWP m_vSwpToolBar;
+
+MRESULT EXPENTRY wxFrameWndProc(HWND hWnd,ULONG ulMsg, MPARAM wParam, MPARAM lParam);
+MRESULT EXPENTRY wxFrameMainWndProc(HWND hWnd,ULONG ulMsg, MPARAM wParam, MPARAM lParam);