⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 restview.cpp

📁 无线传感器网络mrps协议算法的vc实现算法
💻 CPP
字号:
// RestView.cpp : implementation file
//

#include "stdafx.h"
#include "Wsn.h"
#include "RestView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRestView

IMPLEMENT_DYNCREATE(CRestView, CListView)

CRestView::CRestView()
{
}

CRestView::~CRestView()
{
}


BEGIN_MESSAGE_MAP(CRestView, CListView)
	//{{AFX_MSG_MAP(CRestView)
	ON_WM_CREATE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRestView drawing

void CRestView::OnDraw(CDC* pDC)
{
	CDocument* pDoc = GetDocument();
	// TODO: add draw code here
}

/////////////////////////////////////////////////////////////////////////////
// CRestView diagnostics

#ifdef _DEBUG
void CRestView::AssertValid() const
{
	CListView::AssertValid();
}

void CRestView::Dump(CDumpContext& dc) const
{
	CListView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CRestView message handlers

BOOL CRestView::PreCreateWindow(CREATESTRUCT& cs) 
{
	// TODO: Add your specialized code here and/or call the base class
	cs.style |= LVS_REPORT;
	return CListView::PreCreateWindow(cs);
}

int CRestView::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CListView::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	// TODO: Add your specialized creation code here
	CListCtrl &ListCtrl = GetListCtrl();
	LVCOLUMN col;
	col.mask = LVCF_FMT | LVCF_TEXT;
	col.pszText = _T("节点能量");
	col.fmt = LVCFMT_LEFT;
	ListCtrl.InsertColumn(1, &col);
	
   	ListCtrl.SetColumnWidth(0, 300);

	
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -