Alphabetical Class Index   File Members   Compound Members   File List  

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