⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dlgbuffersetting.cpp

📁 VoiceAngel,很好的控件,VC源码
💻 CPP
字号:
// DlgBufferSetting.cpp : implementation file
//

#include "stdafx.h"
#include "VcDemo_pro.h"
#include "DlgBufferSetting.h"
#include "VcDemo_proDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CVcDemo_proApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CDlgBufferSetting dialog


CDlgBufferSetting::CDlgBufferSetting(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgBufferSetting::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgBufferSetting)
	//}}AFX_DATA_INIT
}


void CDlgBufferSetting::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgBufferSetting)
	DDX_Control(pDX, IDC_EDT_RECORD_BUFFER_SIZE, m_edtRecordBufferSize);
	DDX_Control(pDX, IDC_EDT_PLAY_BUFFER_SIZE, m_edtPlayBufferSize);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgBufferSetting, CDialog)
	//{{AFX_MSG_MAP(CDlgBufferSetting)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgBufferSetting message handlers

void CDlgBufferSetting::OnOK() 
{
	// TODO: Add extra validation here
	CVcDemo_proDlg * pMainDlg;
	pMainDlg= (	CVcDemo_proDlg *) theApp.m_pMainWnd;
	char bufsize[10];
    m_edtPlayBufferSize.GetWindowText(bufsize,5); 
	long nBufSize =atol(bufsize);
	pMainDlg->m_Va.SetPlayBufferSize(nBufSize);
    m_edtRecordBufferSize.GetWindowText(bufsize,5); 
	nBufSize =atol(bufsize);
	pMainDlg->m_Va.SetRecordBufferSize(nBufSize);
    CDialog::OnOK();
}

⌨️ 快捷键说明

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