📄 optionbar.cpp
字号:
// OptionBar.cpp : implementation file
//
#include "stdafx.h"
#include "magicscissors.h"
#include "OptionBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// COptionBar
COptionBar::COptionBar()
{
}
COptionBar::~COptionBar()
{
}
BEGIN_MESSAGE_MAP(COptionBar, CDialogBar)
//{{AFX_MSG_MAP(COptionBar)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// COptionBar message handlers
void COptionBar::UpdateData(BOOL bSet)
{
CString str;
if( bSet )
{
GetDlgItem(IDC_EDIT1)->GetWindowText(str);
m_nSearchWidth = atoi( (LPCTSTR)str );
GetDlgItem(IDC_EDIT2)->GetWindowText(str);
m_nSmoothTab = atoi( (LPCTSTR)str );
GetDlgItem(IDC_EDIT3)->GetWindowText(str);
m_nEdge = atoi( (LPCTSTR)str );
}
else
{
str.Format("%d", m_nSearchWidth );
GetDlgItem(IDC_EDIT1)->SetWindowText(str);
str.Format("%d", m_nSmoothTab );
GetDlgItem(IDC_EDIT2)->SetWindowText(str);
str.Format("%d", m_nEdge );
GetDlgItem(IDC_EDIT3)->SetWindowText(str);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -