Windows环境下的麦克风录音系统(14) { // TODO: Add your control notification handler code here m_btnStart.EnableWindow(FALSE); if(theSoundCapture().__initMic()) { m_filePath.SetWindowText(_T("yangchen.wav.")); theSoundCapture().__createOutputWaveFile(_T("yangchen.wav")); if(!theSoundCapture().__openMic()) { ::MessageBox(this->m_hWnd, _T("Can not open microphone!"), _T("Error"),MB_OKMB_ICONERROR); return; } } m_btnStop.EnableWindow(TRUE); // 设置定时器是为了画波形用的 SetTimer(1, 200 /*start slow*/, NULL); } 4.在定时器的回调函数中画波形. void CMicDemoDlg::OnTimer(UINT nIDEvent)