資源簡介
聲卡數據采集播放演示源程序(vc).zip,基于c++編寫,歡迎下載!!

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“snd.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.Create(this)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Remove?this?if?you?don‘t?want?tool?tips?or?a?resizeable?toolbar
m_wndToolBar.SetBarstyle(m_wndToolBar.GetBarstyle()?|
CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC);
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?CframeWnd::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2539??1998-11-04?20:23??MainFrm.cpp
?????文件????????1586??1998-11-04?20:23??MainFrm.h
?????文件?????????938??1998-11-05?19:49??Process.cpp
?????文件????????1051??1998-11-05?19:49??Process.h
?????文件?????????953??1998-11-05?20:07??README.TXT
?????文件?????????488??1998-11-04?20:23??Resource.h
?????文件????????1078??1998-11-04?20:23??res\snd.ico
?????文件?????????395??1998-11-04?20:23??res\snd.rc2
?????文件????????1078??1998-11-04?20:23??res\sndDoc.ico
?????文件????????1078??1998-11-04?20:23??res\Toolbar.bmp
?????文件????????3443??1998-11-05?19:26??snd.clw
?????文件????????4373??1998-11-05?19:26??snd.cpp
?????文件????????4759??1998-11-05?19:26??snd.dsp
?????文件?????????531??1998-11-04?20:23??snd.dsw
?????文件???????24064??1998-11-05?19:26??snd.exe
?????文件????????1363??1998-11-04?21:59??snd.h
?????文件???????12635??1998-11-04?21:47??snd.rc
?????文件????????1682??1998-11-04?20:23??sndDoc.cpp
?????文件????????1450??1998-11-04?20:23??sndDoc.h
?????文件????????3689??1998-11-09?19:03??sndView.cpp
?????文件????????1780??1998-11-04?21:29??sndView.h
?????文件????????8182??1998-11-05?19:26??SoundIn.cpp
?????文件????????2927??1998-11-05?19:22??Soundin.h
?????文件?????????201??1998-11-04?20:23??StdAfx.cpp
?????文件?????????987??1998-11-04?20:23??StdAfx.h
- 上一篇:大地線正反算
- 下一篇:TelBook.cpp通訊錄課程設計
評論
共有 條評論