a
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
// opexeccersptestframe.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "geomative.h"
|
||||
#include "opexeccersptestframe.h"
|
||||
#include "opexeccersprecframe.h"
|
||||
|
||||
#include "opexeccersptesttdview.h"
|
||||
#include "OpExecCERSPTestTdScrollView.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// COpExecCERSPTestFrame
|
||||
|
||||
IMPLEMENT_DYNCREATE(COpExecCERSPTestFrame, CFrameWnd)
|
||||
|
||||
COpExecCERSPTestFrame::COpExecCERSPTestFrame()
|
||||
{
|
||||
m_pOpExecCERSPTestTdScrollView = NULL;
|
||||
m_pOpExecCERSPRecFrame = NULL;
|
||||
}
|
||||
|
||||
COpExecCERSPTestFrame::~COpExecCERSPTestFrame()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(COpExecCERSPTestFrame, CFrameWnd)
|
||||
//{{AFX_MSG_MAP(COpExecCERSPTestFrame)
|
||||
// NOTE - the ClassWizard will add and remove mapping macros here.
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// COpExecCERSPTestFrame message handlers
|
||||
|
||||
BOOL COpExecCERSPTestFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
|
||||
{
|
||||
// TODO: Add your specialized code here and/or call the base class
|
||||
|
||||
CRect rect;
|
||||
|
||||
if (VAL_ZERO == m_firstSplitter.GetSafeHwnd())
|
||||
{
|
||||
GetClientRect(rect);
|
||||
|
||||
m_firstSplitter.CreateStatic(this, 1, 2);
|
||||
|
||||
VERIFY(m_firstSplitter.CreateView(0, 0, RUNTIME_CLASS(COpExecCERSPRecFrame), CSize((rect.right-rect.left)/8*3, rect.bottom-rect.top), pContext));
|
||||
m_pOpExecCERSPRecFrame = static_cast<COpExecCERSPRecFrame*>(m_firstSplitter.GetPane(0, 0));
|
||||
ASSERT(m_pOpExecCERSPRecFrame != NULL);
|
||||
|
||||
VERIFY(m_firstSplitter.CreateView(0, 1, RUNTIME_CLASS(COpExecCERSPTestTdScrollView), CSize((rect.right-rect.left)/8*5, rect.bottom-rect.top), pContext));
|
||||
m_pOpExecCERSPTestTdScrollView = static_cast<COpExecCERSPTestTdScrollView*>(m_firstSplitter.GetPane(0, 1));
|
||||
ASSERT(m_pOpExecCERSPTestTdScrollView != NULL);
|
||||
m_pOpExecCERSPTestTdScrollView->OnInitialUpdate();
|
||||
|
||||
m_firstSplitter.RecalcLayout();
|
||||
}
|
||||
|
||||
return CFrameWnd::OnCreateClient(lpcs, pContext);
|
||||
}
|
||||
Reference in New Issue
Block a user