a
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
// opexeccersprecframe.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "geomative.h"
|
||||
#include "opexeccersprecframe.h"
|
||||
|
||||
#include "opexeccersptestsptlistview.h"
|
||||
#include "opexeccersptesttdlistview.h"
|
||||
#include "opexeccersptesttpview.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// COpExecCERSPRecFrame
|
||||
|
||||
IMPLEMENT_DYNCREATE(COpExecCERSPRecFrame, CFrameWnd)
|
||||
|
||||
COpExecCERSPRecFrame::COpExecCERSPRecFrame()
|
||||
{
|
||||
m_pOpExecCERSPTestSptListView = NULL;
|
||||
m_pOpExecCERSPTestTdListView = NULL;
|
||||
m_pOpExecCERSPTestTPView = NULL;
|
||||
|
||||
}
|
||||
|
||||
COpExecCERSPRecFrame::~COpExecCERSPRecFrame()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(COpExecCERSPRecFrame, CFrameWnd)
|
||||
//{{AFX_MSG_MAP(COpExecCERSPRecFrame)
|
||||
// NOTE - the ClassWizard will add and remove mapping macros here.
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// COpExecCERSPRecFrame message handlers
|
||||
|
||||
BOOL COpExecCERSPRecFrame::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, 2, 1);
|
||||
|
||||
VERIFY(m_firstSplitter.CreateView(0, 0, RUNTIME_CLASS(COpExecCERSPTestSptListView), CSize((rect.right-rect.left)/4, (rect.bottom-rect.top)/3), pContext));
|
||||
m_pOpExecCERSPTestSptListView = static_cast<COpExecCERSPTestSptListView*>(m_firstSplitter.GetPane(0, 0));
|
||||
ASSERT(m_pOpExecCERSPTestSptListView != NULL);
|
||||
m_pOpExecCERSPTestSptListView->OnInitialUpdate();
|
||||
|
||||
VERIFY(m_firstSplitter.CreateView(1, 0, RUNTIME_CLASS(COpExecCERSPTestTdListView), CSize((rect.right-rect.left)/4, (rect.bottom-rect.top)/3), pContext));
|
||||
m_pOpExecCERSPTestTdListView = static_cast<COpExecCERSPTestTdListView*>(m_firstSplitter.GetPane(1, 0));
|
||||
ASSERT(m_pOpExecCERSPTestTdListView != NULL);
|
||||
m_pOpExecCERSPTestTdListView->OnInitialUpdate();
|
||||
/*
|
||||
VERIFY(m_firstSplitter.CreateView(2, 0, RUNTIME_CLASS(COpExecCERSPTestTPView), CSize((rect.right-rect.left)/4, (rect.bottom-rect.top)/3), pContext));
|
||||
m_pOpExecCERSPTestTPView = static_cast<COpExecCERSPTestTPView*>(m_firstSplitter.GetPane(2, 0));
|
||||
ASSERT(m_pOpExecCERSPTestTPView != NULL);
|
||||
m_pOpExecCERSPTestTPView->OnInitialUpdate();
|
||||
*/
|
||||
m_pOpExecCERSPTestSptListView->SetFocus();
|
||||
}
|
||||
|
||||
return CFrameWnd::OnCreateClient(lpcs, pContext);
|
||||
}
|
||||
Reference in New Issue
Block a user