// appexecsptchannellistview.cpp : implementation file // #include "stdafx.h" #include "geomative.h" #include "appsptchannellistview.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAppSptChannelListView IMPLEMENT_DYNCREATE(CAppSptChannelListView, CListView) CAppSptChannelListView::CAppSptChannelListView() { } CAppSptChannelListView::~CAppSptChannelListView() { } BEGIN_MESSAGE_MAP(CAppSptChannelListView, CListView) //{{AFX_MSG_MAP(CAppSptChannelListView) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CAppSptChannelListView drawing void CAppSptChannelListView::OnDraw(CDC* pDC) { CDocument* pDoc = GetDocument(); // TODO: add draw code here } ///////////////////////////////////////////////////////////////////////////// // CAppSptChannelListView diagnostics #ifdef _DEBUG void CAppSptChannelListView::AssertValid() const { CListView::AssertValid(); } void CAppSptChannelListView::Dump(CDumpContext& dc) const { CListView::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CAppSptChannelListView message handlers void CAppSptChannelListView::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_LEFT, 100); iColIndex++; strColTitle.Empty(); strColTitle.LoadString(IDS_DB_MEDIUM_MENAME); GetListCtrl().InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 200); } BOOL CAppSptChannelListView::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); }