a
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
// AppDataCESTdGrListView.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "geomative.h"
|
||||
#include "AppDataCESTdGrListView.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAppDataCESTdGrListView
|
||||
|
||||
IMPLEMENT_DYNCREATE(CAppDataCESTdGrListView, CListView)
|
||||
|
||||
CAppDataCESTdGrListView::CAppDataCESTdGrListView()
|
||||
{
|
||||
m_iAR = 0;
|
||||
}
|
||||
|
||||
CAppDataCESTdGrListView::~CAppDataCESTdGrListView()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CAppDataCESTdGrListView, CListView)
|
||||
//{{AFX_MSG_MAP(CAppDataCESTdGrListView)
|
||||
// NOTE - the ClassWizard will add and remove mapping macros here.
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAppDataCESTdGrListView drawing
|
||||
|
||||
void CAppDataCESTdGrListView::OnDraw(CDC* pDC)
|
||||
{
|
||||
CDocument* pDoc = GetDocument();
|
||||
// TODO: add draw code here
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAppDataCESTdGrListView diagnostics
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CAppDataCESTdGrListView::AssertValid() const
|
||||
{
|
||||
CListView::AssertValid();
|
||||
}
|
||||
|
||||
void CAppDataCESTdGrListView::Dump(CDumpContext& dc) const
|
||||
{
|
||||
CListView::Dump(dc);
|
||||
}
|
||||
#endif //_DEBUG
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAppDataCESTdGrListView message handlers
|
||||
|
||||
BOOL CAppDataCESTdGrListView::PreCreateWindow(CREATESTRUCT& cs)
|
||||
{
|
||||
// TODO: Add your specialized code here and/or call the base class
|
||||
cs.style &= ~LVS_TYPEMASK;
|
||||
cs.style |= LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS;
|
||||
return CListView::PreCreateWindow(cs);
|
||||
}
|
||||
|
||||
void CAppDataCESTdGrListView::OnInitialUpdate()
|
||||
{
|
||||
CListView::OnInitialUpdate();
|
||||
|
||||
// TODO: Add your specialized code here and/or call the base class
|
||||
// TODO: Add your specialized code here and/or call the base class
|
||||
CString strColTitle;
|
||||
int iColIndex = (int)VAL_ZERO;
|
||||
|
||||
GetListCtrl().SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP
|
||||
| LVS_EX_ONECLICKACTIVATE | LVS_EX_GRIDLINES);
|
||||
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_GR_ECODE);
|
||||
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 100);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_GR_OMVALUE);
|
||||
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 90);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_GR_OMSTATUS);
|
||||
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 150);
|
||||
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_GR_MDATE);
|
||||
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 110);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_GR_MTIME);
|
||||
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 110);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user