mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-26 15:44:51 +01:00
75 lines
2.0 KiB
C++
75 lines
2.0 KiB
C++
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
|
|
|
#if !defined(AFX_SPLITTERFRAME_H__1F06C2AF_EF87_4728_9A83_7BD10DD1F70E__INCLUDED_)
|
|
#define AFX_SPLITTERFRAME_H__1F06C2AF_EF87_4728_9A83_7BD10DD1F70E__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// SplitterFrame.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CSplitterFrame frame
|
|
#define SPLITTER_WITDH 6
|
|
|
|
class CSplitterFrame : public CWnd
|
|
{
|
|
DECLARE_DYNCREATE(CSplitterFrame)
|
|
public:
|
|
CSplitterFrame(); // protected constructor used by dynamic creation
|
|
/*
|
|
int GetPosX();
|
|
int iStartPosX;
|
|
*/
|
|
|
|
void ChangeParent(CWnd *pNewParent);
|
|
void SetAbsPosition(CPoint pt);
|
|
CPoint GetAbsPosition();
|
|
void SetDockingSide(UINT uiDockSide);
|
|
void SetSpliterSize(INDEX iNewSize);
|
|
void SetSize(INDEX iWidth,INDEX iHeight);
|
|
void UpdateParent();
|
|
void EnableDocking();
|
|
|
|
|
|
// Attributes
|
|
protected:
|
|
wchar_t *pchCursor;
|
|
CWnd *pDockedParent;
|
|
CWnd *pFloatingParent;
|
|
CPoint sp_ptStartPoint;
|
|
INDEX iSplitterSize;
|
|
UINT sp_uiDockSide;
|
|
BOOL sp_bDockingEnabled;
|
|
// Operations
|
|
public:
|
|
// virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CSplitterFrame)
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
virtual ~CSplitterFrame();
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CSplitterFrame)
|
|
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
|
|
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
|
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_SPLITTERFRAME_H__1F06C2AF_EF87_4728_9A83_7BD10DD1F70E__INCLUDED_)
|