CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - getlength
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
ASP
ASPX.NET
PHP
JSP/Java
FlashMX
Perl
Other Web Code
SilverLight
Search - getlength - List
[
WEB Code
]
waveOCXn
DL : 0
< 波形声音控件函数使用说明>> ****************************************************************************************************************** 函数名 功能 说明 ------------------------------------------------------------------------------------------------------------------ GetData() 获取评分数据 当调用GetData()时WVGetData事件会自动 触发,参数Data也就是得到的数据 GetLength() 获取文件总长度 函数返回文件的长度 OpenFile(CString filename) 打开声音文件自 动分析波形 RECPFstart(long Max) 长度限制录制 当录制的长度大于Max时自动停止,并返回 RECPFstop事件 RECstart() 开始录音 RECstop() 停止录音 RECpause(bool REC_STATE) 继续/暂停录音 当REC_STATEO为TRUE时暂停有效,相反继续 play() 播放 replay(int dounum) 重复播放 dounum为重复次数 pause() 暂停 stop() 停止播放-lt; Lt; Waveform voice control function for use gt; Gt; *********************************** ************************************************** ********************************* function Description ------------------ -------------------------------------------------- ---------------------------------------------- GetData () were When the score data from call GetData () WVGetData incident will automatically trigger, parameters Data is the data GetLength () access to documents total length function returns the length OpenFile (redeem filename) to open the audio files automatically waveform analysis RECPFstart (long Max) was recorded when the recording length restriction the system is greater than the length of Max automatically stop, and return to RECPFstop incident RECstart () began recordi
Date
: 2008-10-13
Size
: 12.17kb
User
:
代振生
[
WEB Code
]
vc21487899244
DL : 0
主要源码: void CFDlg::OnChangeEdit1() { UpdateData() m_strExt.MakeUpper() m_list.ResetContent() if(m_strExt.GetLength()==0) return CStdioFile sf if(sf.Open(\"FileExt.txt\",Cfile::modeRead)) { CString strTemp,strOut while(sf.ReadString(strTemp)) { if(strTemp.Left(m_strExt.GetLength()) ==m_strExt) { m_list.AddString(strTemp) } } } sf.Close() m_list.SetCurSel(0) this->OnSelchangeList2() } void CFDlg::OnSelchangeList2() { CString strTemp,strExt m_list.GetText(m_list.GetCurSel(),strTemp) strExt=strTemp.Left(strTemp.FindOneOf(\" \")) //MessageBox(strExt) CString strFileName =\"eee.\"+strExt //MessageBox(strFileName) SHFILEINFO shfi memset(&shfi,0,sizeof(shfi)) //或者ZeroMemory(&shfi,sizeof(shfi)) ::SHGetFileInfo(strFileName, FILE_ATTRIBUTE_NORMAL, &shfi, sizeof(shfi), SHGFI_ICON|SHGFI_USEFILEATTRIBUTES) m_icon.SetIcon(shfi.hIcon) }
Date
: 2008-10-13
Size
: 40.6kb
User
:
HUGH RENNY
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.