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