Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.3 KiB

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef CHILDFRM_H
  7. #define CHILDFRM_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. enum DrawType_t;
  12. class CMySplitterWnd : public CSplitterWnd
  13. {
  14. public:
  15. CMySplitterWnd(void) { pMaxPrev = NULL; }
  16. int sizePrev[2][2];
  17. CWnd *pMaxPrev;
  18. void ToggleMax(CWnd *pWnd);
  19. };
  20. class CChildFrame : public CMDIChildWnd
  21. {
  22. DECLARE_DYNCREATE(CChildFrame)
  23. public:
  24. CChildFrame(void);
  25. CView *ReplaceView(CRuntimeClass *pViewClass);
  26. void SetSplitterMode(BOOL bSplitter);
  27. CView *GetActiveView(void);
  28. void SaveOptions(void);
  29. void SetViewType(DrawType_t eViewType);
  30. void CenterViews(void);
  31. BOOL bAutosize4, bFirstPaint;
  32. BOOL bUsingSplitter;
  33. BOOL m_bReady;
  34. BOOL m_bNeedsCentered;
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CChildFrame)
  37. public:
  38. BOOL PreCreateWindow(CREATESTRUCT& cs);
  39. //}}AFX_VIRTUAL
  40. public:
  41. virtual ~CChildFrame(void);
  42. #ifdef _DEBUG
  43. virtual void AssertValid() const;
  44. virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46. protected:
  47. virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  48. //{{AFX_MSG(CChildFrame)
  49. afx_msg void OnSetFocus( CWnd* pOldWnd );
  50. afx_msg void OnClose();
  51. afx_msg void OnView2dxy();
  52. afx_msg void OnView2dyz();
  53. afx_msg void OnView2dxz();
  54. afx_msg void OnViewLogical();
  55. afx_msg void OnView3dPolygon();
  56. afx_msg void OnView3dTextured();
  57. afx_msg void OnView3dTexturedShaded();
  58. afx_msg void OnView3dLightingPreview();
  59. afx_msg void OnView3dLightingPreviewRayTraced();
  60. afx_msg void OnView3dLightmapGrid();
  61. afx_msg void OnView3dWireframe();
  62. afx_msg void OnView3dSmooth(void);
  63. //afx_msg void OnView3dEngine(void);
  64. //afx_msg void OnUpdateView2d(CCmdUI* pCmdUI);
  65. //afx_msg void OnUpdateView3d(CCmdUI* pCmdUI);
  66. afx_msg void OnViewAutosize4();
  67. afx_msg void OnUpdateViewAutosize4(CCmdUI* pCmdUI);
  68. afx_msg void OnSize(UINT nType, int cx, int cy);
  69. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  70. afx_msg void OnPaint();
  71. afx_msg void OnViewMaximizepane();
  72. afx_msg void OnUpdateViewMaximizepane(CCmdUI* pCmdUI);
  73. afx_msg void OnWindowToggle();
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. CMySplitterWnd *m_wndSplitter;
  77. };
  78. void SetDefaultChildType(BOOL b4Views);
  79. #endif // CHILDFRM_H