Alphabetical Class Index   File Members   Compound Members   File List  

CHoopsFrm.h
1 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 // CHoopsFrm.h : interface of the CHoopsFrame class, derived from CMDIFrameWnd(MDI)/CFrameWnd(SDI)
11 // Manages palette creation and sharing per HOOPS MDI requirements
12 
13 #include "HMFCGlobals.h"
14 
15 #ifndef hoops_frame
16 #define hoops_frame
17 
18 #ifdef HOOPS_MFC_SDI
19 #define CBaseHoopsFrameWnd CFrameWnd
20 #else
21 #define CBaseHoopsFrameWnd CMDIFrameWnd
22 #endif
23 
25 public:
28 
29  void Maximize(CFrameWnd* pFrame, CWnd* pView);
30  void Restore(CFrameWnd* pFrame);
31  BOOL InFullScreenMode() { return !m_rcRestore.IsRectEmpty(); }
32  CSize GetMaxSize(CWnd* pView);
33 
34 protected:
35  CRect m_rcRestore;
36  CRect m_MaxSize;
37  DWORD m_styleRestore;
38  bool m_maximized;
39 };
40 
42 
47 class HMFC_API CHoopsFrame : public CBaseHoopsFrameWnd
48 {
49 // Attributes
50 
51 protected:
52 
53  CPalette *m_pPalette;
62  void DockControlBarLeftOf(CToolBar* Bar,CToolBar* LeftOf);
63 
64 public:
65  CHoopsFrame();
66 
67 #ifdef HOOPS_MFC_SDI
68  DECLARE_DYNCREATE(CHoopsFrame)
69 #else
70  DECLARE_DYNAMIC(CHoopsFrame);
71 #endif
72 
73 
78  CHoopsFrame(BOOL share);
79 
80 
81 // Operations
82 public:
84  CPalette *GetSharedPalette() {return m_pPalette;};
85 
87  BOOL IsPaletteShared() {return m_bSharePalette;};
88 
90  void SetPaletteShared(BOOL share);
91 
92 
93 
94 // Overrides
95  // ClassWizard generated virtual function overrides
96  //{{AFX_VIRTUAL(CHoopsFrame)
97  public:
98  virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
99  //}}AFX_VIRTUAL
100 
101 // Implementation
102 public:
103  virtual ~CHoopsFrame();
104 #ifdef _DEBUG
105  virtual void AssertValid() const;
106  virtual void Dump(CDumpContext& dc) const;
107 #endif
108  void OnViewFullScreen();
109 
110 protected: // control bar embedded members
111  CStatusBar m_wndStatusBar;
112  CToolBar m_wndToolBar;
113 
114 // Generated message map functions
115 protected:
116  //{{AFX_MSG(CHoopsFrame)
117  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
118  afx_msg BOOL OnQueryNewPalette();
119  afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
120  afx_msg void OnMove(int x, int y);
121  afx_msg virtual BOOL OnWndMsg( UINT message, WPARAM wParam, LPARAM lParam, LRESULT *pResult);
122  afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpmmi);
123  //}}AFX_MSG
124  DECLARE_MESSAGE_MAP()
125 };
126 
127 #endif
128 
BOOL IsPaletteShared()
Definition: CHoopsFrm.h:87
CPalette * m_pPalette
Definition: CHoopsFrm.h:53
CPalette * GetSharedPalette()
Definition: CHoopsFrm.h:84
BOOL m_bSharePalette
Definition: CHoopsFrm.h:55
The CHoopsFrame class provides a HOOPS-specific implementation of the CMDIFrameWnd(MDI)/CFrameWnd(SDI...
Definition: CHoopsFrm.h:47
CToolBar m_wndToolBar
currently unused
Definition: CHoopsFrm.h:112
CStatusBar m_wndStatusBar
used by SetPaneText
Definition: CHoopsFrm.h:111
Definition: CHoopsFrm.h:24