mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-23 06:36:54 +00:00
105 lines
2.3 KiB
C
105 lines
2.3 KiB
C
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
//===========================================================================//
|
||
|
|
||
|
#ifndef CHILDFRM_H
|
||
|
#define CHILDFRM_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
enum DrawType_t;
|
||
|
|
||
|
class CMySplitterWnd : public CSplitterWnd
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
CMySplitterWnd(void) { pMaxPrev = NULL; }
|
||
|
|
||
|
int sizePrev[2][2];
|
||
|
CWnd *pMaxPrev;
|
||
|
|
||
|
void ToggleMax(CWnd *pWnd);
|
||
|
};
|
||
|
|
||
|
|
||
|
class CChildFrame : public CMDIChildWnd
|
||
|
{
|
||
|
DECLARE_DYNCREATE(CChildFrame)
|
||
|
|
||
|
public:
|
||
|
|
||
|
CChildFrame(void);
|
||
|
|
||
|
CView *ReplaceView(CRuntimeClass *pViewClass);
|
||
|
void SetSplitterMode(BOOL bSplitter);
|
||
|
CView *GetActiveView(void);
|
||
|
void SaveOptions(void);
|
||
|
void SetViewType(DrawType_t eViewType);
|
||
|
void CenterViews(void);
|
||
|
|
||
|
BOOL bAutosize4, bFirstPaint;
|
||
|
BOOL bUsingSplitter;
|
||
|
BOOL m_bReady;
|
||
|
BOOL m_bNeedsCentered;
|
||
|
|
||
|
// ClassWizard generated virtual function overrides
|
||
|
//{{AFX_VIRTUAL(CChildFrame)
|
||
|
public:
|
||
|
BOOL PreCreateWindow(CREATESTRUCT& cs);
|
||
|
//}}AFX_VIRTUAL
|
||
|
|
||
|
public:
|
||
|
|
||
|
virtual ~CChildFrame(void);
|
||
|
#ifdef _DEBUG
|
||
|
virtual void AssertValid() const;
|
||
|
virtual void Dump(CDumpContext& dc) const;
|
||
|
#endif
|
||
|
|
||
|
protected:
|
||
|
|
||
|
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
|
||
|
|
||
|
//{{AFX_MSG(CChildFrame)
|
||
|
afx_msg void OnSetFocus( CWnd* pOldWnd );
|
||
|
|
||
|
afx_msg void OnClose();
|
||
|
afx_msg void OnView2dxy();
|
||
|
afx_msg void OnView2dyz();
|
||
|
afx_msg void OnView2dxz();
|
||
|
afx_msg void OnViewLogical();
|
||
|
afx_msg void OnView3dPolygon();
|
||
|
afx_msg void OnView3dTextured();
|
||
|
afx_msg void OnView3dTexturedShaded();
|
||
|
afx_msg void OnView3dLightingPreview();
|
||
|
afx_msg void OnView3dLightingPreviewRayTraced();
|
||
|
afx_msg void OnView3dLightmapGrid();
|
||
|
afx_msg void OnView3dWireframe();
|
||
|
afx_msg void OnView3dSmooth(void);
|
||
|
//afx_msg void OnView3dEngine(void);
|
||
|
//afx_msg void OnUpdateView2d(CCmdUI* pCmdUI);
|
||
|
//afx_msg void OnUpdateView3d(CCmdUI* pCmdUI);
|
||
|
afx_msg void OnViewAutosize4();
|
||
|
afx_msg void OnUpdateViewAutosize4(CCmdUI* pCmdUI);
|
||
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
||
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
||
|
afx_msg void OnPaint();
|
||
|
afx_msg void OnViewMaximizepane();
|
||
|
afx_msg void OnUpdateViewMaximizepane(CCmdUI* pCmdUI);
|
||
|
afx_msg void OnWindowToggle();
|
||
|
//}}AFX_MSG
|
||
|
|
||
|
DECLARE_MESSAGE_MAP()
|
||
|
|
||
|
CMySplitterWnd *m_wndSplitter;
|
||
|
};
|
||
|
|
||
|
|
||
|
void SetDefaultChildType(BOOL b4Views);
|
||
|
|
||
|
|
||
|
#endif // CHILDFRM_H
|