Files
coco df489d5640 a
2026-07-03 16:05:30 +08:00

123 lines
3.1 KiB
C++

// appcesptconlistview.cpp : implementation file
//
#include "stdafx.h"
#include "geomative.h"
#include "appcesptconlistview.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAppCESptConListView
IMPLEMENT_DYNCREATE(CAppCESptConListView, CListView)
CAppCESptConListView::CAppCESptConListView()
{
}
CAppCESptConListView::~CAppCESptConListView()
{
}
BEGIN_MESSAGE_MAP(CAppCESptConListView, CListView)
//{{AFX_MSG_MAP(CAppCESptConListView)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAppCESptConListView drawing
void CAppCESptConListView::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
// TODO: add draw code here
}
/////////////////////////////////////////////////////////////////////////////
// CAppCESptConListView diagnostics
#ifdef _DEBUG
void CAppCESptConListView::AssertValid() const
{
CListView::AssertValid();
}
void CAppCESptConListView::Dump(CDumpContext& dc) const
{
CListView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CAppCESptConListView message handlers
void CAppCESptConListView::OnInitialUpdate()
{
CListView::OnInitialUpdate();
// 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);
m_pMngFrm = (CMDIChildWnd*)GetParentFrame();
strColTitle.Empty();
strColTitle.LoadString(IDS_DB_CHANNEL_CHNUMBER);
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_CENTER, 100);
iColIndex++;
strColTitle.Empty();
strColTitle.LoadString(IDS_DB_SCRIPT_TSN);
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_CENTER, 100);
iColIndex++;
strColTitle.Empty();
strColTitle.LoadString(IDS_DB_SCRIPT_a);
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_CENTER, 100);
iColIndex++;
strColTitle.Empty();
strColTitle.LoadString(IDS_DB_SCRIPT_b);
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_CENTER, 100);
iColIndex++;
strColTitle.Empty();
strColTitle.LoadString(IDS_DB_SCRIPT_x);
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_CENTER, 100);
iColIndex++;
strColTitle.Empty();
strColTitle.LoadString(IDS_DB_SCRIPT_y);
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_CENTER, 100);
iColIndex++;
strColTitle.Empty();
strColTitle.LoadString(IDS_DB_SCRIPT_K);
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_RIGHT, 100);
iColIndex++;
strColTitle.Empty();
strColTitle.LoadString(IDS_DB_SCRIPT_N);
GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_CENTER, 100);
}
BOOL CAppCESptConListView::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;
return CListView::PreCreateWindow(cs);
}