dlgstaticview.cpp

来自「本程序源码是为日本一家地震监测机构编写的」· C++ 代码 · 共 57 行

CPP
57
字号
// DlgStaticView.cpp : implementation file
//

#include "stdafx.h"
#include "CQuakeDemo.h"
#include "DlgStaticView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgStaticView dialog

CDlgStaticView::CDlgStaticView(CWnd* pParent /*=NULL*/)
	: CResizableDialog(CDlgStaticView::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgStaticView)
	//}}AFX_DATA_INIT
}


void CDlgStaticView::DoDataExchange(CDataExchange* pDX)
{
	CResizableDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgStaticView)
	DDX_Control(pDX, IDC_LIST_TOOLBAR, m_list);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgStaticView, CResizableDialog)
	//{{AFX_MSG_MAP(CDlgStaticView)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgStaticView message handlers

BOOL CDlgStaticView::OnInitDialog() 
{
	CResizableDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	AddAnchor(IDC_COMBO1,TOP_LEFT,TOP_RIGHT);
	AddAnchor(IDC_LIST_TOOLBAR,TOP_LEFT,BOTTOM_RIGHT);
	m_list.InsertColumn(1,_T("Type"),LVCFMT_LEFT,60);
	m_list.InsertColumn(2,_T("Value"),LVCFMT_LEFT,115);
	
	m_list.ModifyStyle(NULL,LVS_SHOWSELALWAYS);
	m_list.SetExtendedStyle(LVS_EX_FULLROWSELECT);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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