a
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
// appdatadevview.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "geomative.h"
|
||||
#include "appdatadevview.h"
|
||||
#include "appdatadevdetaillistview.h"
|
||||
#include "appdataprolistview.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAppDataDevView
|
||||
|
||||
IMPLEMENT_DYNCREATE(CAppDataDevView, CView)
|
||||
|
||||
CAppDataDevView::CAppDataDevView()
|
||||
{
|
||||
m_pMngFrm = NULL;
|
||||
}
|
||||
|
||||
CAppDataDevView::~CAppDataDevView()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CAppDataDevView, CView)
|
||||
//{{AFX_MSG_MAP(CAppDataDevView)
|
||||
ON_WM_SIZE()
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAppDataDevView drawing
|
||||
|
||||
void CAppDataDevView::OnDraw(CDC* pDC)
|
||||
{
|
||||
CDocument* pDoc = GetDocument();
|
||||
// TODO: add draw code here
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAppDataDevView diagnostics
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CAppDataDevView::AssertValid() const
|
||||
{
|
||||
CView::AssertValid();
|
||||
}
|
||||
|
||||
void CAppDataDevView::Dump(CDumpContext& dc) const
|
||||
{
|
||||
CView::Dump(dc);
|
||||
}
|
||||
#endif //_DEBUG
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAppDataDevView message handlers
|
||||
|
||||
BOOL CAppDataDevView::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
|
||||
{
|
||||
CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
|
||||
// TODO: Add your specialized code here and/or call the base class
|
||||
if(VAL_ZERO == m_firstSplitter.GetSafeHwnd())
|
||||
{
|
||||
m_firstSplitter.CreateStatic(this, 1, 2);
|
||||
|
||||
VERIFY(m_firstSplitter.CreateView((int)SPL_VIEW_ROW_0, (int)SPL_VIEW_COL_0, RUNTIME_CLASS(CAppDataDevDetailListView),
|
||||
CSize(SPL_VIEW_APP_DETAIL_WIDTH, rect.bottom-rect.top), pContext));
|
||||
m_pDetailListView = static_cast<CView*>(m_firstSplitter.GetPane((int)SPL_VIEW_ROW_0, (int)SPL_VIEW_COL_0));
|
||||
ASSERT(m_pDetailListView != NULL);
|
||||
m_pDetailListView->OnInitialUpdate();
|
||||
|
||||
VERIFY(m_firstSplitter.CreateView((int)SPL_VIEW_ROW_0, (int)SPL_VIEW_COL_1, RUNTIME_CLASS(CAppDataProListView), CSize(0, rect.bottom-rect.top), pContext));
|
||||
m_pContentListView = static_cast<CView*>(m_firstSplitter.GetPane((int)SPL_VIEW_ROW_0, (int)SPL_VIEW_COL_1));
|
||||
ASSERT(m_pContentListView != NULL);
|
||||
m_pContentListView->OnInitialUpdate();
|
||||
|
||||
m_firstSplitter.RecalcLayout();
|
||||
}
|
||||
|
||||
m_pMngFrm = (CMDIChildWnd*)GetParentFrame();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void CAppDataDevView::OnSize(UINT nType, int cx, int cy)
|
||||
{
|
||||
CView::OnSize(nType, cx, cy);
|
||||
|
||||
// TODO: Add your message handler code here
|
||||
if (VAL_ZERO != m_firstSplitter.GetSafeHwnd())
|
||||
{
|
||||
m_firstSplitter.MoveWindow((int)VAL_ZERO, (int)VAL_ZERO, cx, cy);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user