Removes UiAnimViewSplitter from Gems/LyShine
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "UiAnimViewSplitter.h"
|
||||
|
||||
|
||||
// CUiAnimViewSplitter
|
||||
|
||||
IMPLEMENT_DYNAMIC(CUiAnimViewSplitter, CSplitterWnd)
|
||||
CUiAnimViewSplitter::CUiAnimViewSplitter()
|
||||
{
|
||||
m_cxSplitter = m_cySplitter = 3 + 1 + 1 - 1;
|
||||
m_cxBorderShare = m_cyBorderShare = 0;
|
||||
m_cxSplitterGap = m_cySplitterGap = 3 + 1 + 1 - 1;
|
||||
m_cxBorder = m_cyBorder = 0;
|
||||
}
|
||||
|
||||
CUiAnimViewSplitter::~CUiAnimViewSplitter()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CUiAnimViewSplitter, CSplitterWnd)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
|
||||
// CUiAnimViewSplitter message handlers
|
||||
|
||||
void CUiAnimViewSplitter::SetPane(int row, int col, CWnd* pWnd, SIZE sizeInit)
|
||||
{
|
||||
assert(pWnd != NULL);
|
||||
|
||||
// set the initial size for that pane
|
||||
m_pColInfo[col].nIdealSize = sizeInit.cx;
|
||||
m_pRowInfo[row].nIdealSize = sizeInit.cy;
|
||||
|
||||
pWnd->ModifyStyle(0, WS_BORDER, WS_CHILD | WS_VISIBLE);
|
||||
pWnd->SetParent(this);
|
||||
|
||||
CRect rect(CPoint(0, 0), sizeInit);
|
||||
pWnd->MoveWindow(0, 0, sizeInit.cx, sizeInit.cy, FALSE);
|
||||
pWnd->SetDlgCtrlID(IdFromRowCol(row, col));
|
||||
|
||||
ASSERT((int)::GetDlgCtrlID(pWnd->m_hWnd) == IdFromRowCol(row, col));
|
||||
}
|
||||
|
||||
void CUiAnimViewSplitter::OnDrawSplitter(CDC* pDC, ESplitType nType, const CRect& rectArg)
|
||||
{
|
||||
// Let CSplitterWnd handle everything but the border-drawing
|
||||
//if((nType != splitBorder) || (pDC == NULL))
|
||||
{
|
||||
CSplitterWnd::OnDrawSplitter(pDC, nType, rectArg);
|
||||
return;
|
||||
}
|
||||
|
||||
ASSERT_VALID(pDC);
|
||||
|
||||
// Draw border
|
||||
pDC->Draw3dRect(rectArg, GetSysColor(COLOR_BTNSHADOW), GetSysColor(COLOR_BTNHIGHLIGHT));
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
|
||||
// CUiAnimViewSplitter
|
||||
|
||||
class CUiAnimViewSplitter
|
||||
: public CSplitterWnd
|
||||
{
|
||||
DECLARE_DYNAMIC(CUiAnimViewSplitter)
|
||||
|
||||
virtual CWnd * GetActivePane(int* pRow = NULL, int* pCol = NULL)
|
||||
{
|
||||
return GetFocus();
|
||||
}
|
||||
|
||||
void SetPane(int row, int col, CWnd* pWnd, SIZE sizeInit);
|
||||
// Ovveride this for flat look.
|
||||
void OnDrawSplitter(CDC* pDC, ESplitType nType, const CRect& rectArg);
|
||||
|
||||
public:
|
||||
CUiAnimViewSplitter();
|
||||
virtual ~CUiAnimViewSplitter();
|
||||
|
||||
protected:
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
Reference in New Issue
Block a user