optionbar.cpp

来自「很珍贵得视频编辑器原码及CODEC。需要安装下列CODEC.可播放多种格式的视频」· C++ 代码 · 共 58 行

CPP
58
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?