📄 paraview.cpp
字号:
// ParaView.cpp : implementation file
//
#include "stdafx.h"
#include "Wsn.h"
#include "ParaView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CParaView
IMPLEMENT_DYNCREATE(CParaView, CListView)
CParaView::CParaView()
{
}
CParaView::~CParaView()
{
}
BEGIN_MESSAGE_MAP(CParaView, CListView)
//{{AFX_MSG_MAP(CParaView)
ON_WM_CREATE()
ON_COMMAND(ID_INIT_PARA, OnInitPara)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CParaView drawing
void CParaView::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
// TODO: add draw code here
}
/////////////////////////////////////////////////////////////////////////////
// CParaView diagnostics
#ifdef _DEBUG
void CParaView::AssertValid() const
{
CListView::AssertValid();
}
void CParaView::Dump(CDumpContext& dc) const
{
CListView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CParaView message handlers
BOOL CParaView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
cs.style |= LVS_REPORT;
return CListView::PreCreateWindow(cs);
}
int CParaView::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;
}
void CParaView::OnInitPara()
{
// TODO: Add your command handler code here
CClientDC dc(this);
MessageBox("para");
dc.TextOut(710,10,"sfs");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -