📄 showline.cpp
字号:
// Showline.cpp : implementation file
//
#include "stdafx.h"
#include "System.h"
#include "Showline.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Showline dialog
Showline::Showline(CWnd* pParent /*=NULL*/)
: CDialog(Showline::IDD, pParent)
{
//{{AFX_DATA_INIT(Showline)
//}}AFX_DATA_INIT
}
void Showline::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Showline)
DDX_Control(pDX, IDC_myLine, m_linepass);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Showline, CDialog)
//{{AFX_MSG_MAP(Showline)
ON_CBN_SELENDCANCEL(IDC_myLine, OnSelendcancelmyLine)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Showline message handlers
void Showline::OnSelendcancelmyLine()
{
Index=m_linepass.GetCurSel();
}
BOOL Showline::OnInitDialog()
{
CDialog::OnInitDialog();
int Index;
Index = m_linepass.AddString("10·");
m_linepass.SetItemData(Index,0);
Index = m_linepass.AddString("43·");
m_linepass.SetItemData(Index,1);
Index = m_linepass.AddString("93·");
m_linepass.SetItemData(Index,2);
Index =m_linepass.AddString("45·");
m_linepass.SetItemData(Index,3);
Index = m_linepass.AddString("53·");
m_linepass.SetItemData(Index,4);
Index = m_linepass.AddString("67·");
m_linepass.SetItemData(Index,5);
Index = m_linepass.AddString("101·");
m_linepass.SetItemData(Index,6);
Index = m_linepass.AddString("121·");
m_linepass.SetItemData(Index,7);
Index = m_linepass.AddString("159·");
m_linepass.SetItemData(Index,8);
Index = m_linepass.AddString("193·");
m_linepass.SetItemData(Index,9);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void Showline::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -