DialogFFTPara.cpp
资源名称:AudioWave.rar [点击查看]
上传用户:huifengb
上传日期:2007-12-27
资源大小:334k
文件大小:2k
源码类别:
多媒体
开发平台:
Visual C++
- // DialogFFTPara.cpp : implementation file
- //
- #include "stdafx.h"
- #include "Audio.h"
- #include "DialogFFTPara.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDialogFFTPara dialog
- CDialogFFTPara::CDialogFFTPara(CWnd* pParent /*=NULL*/)
- : CDialog(CDialogFFTPara::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDialogFFTPara)
- m_nEditPower = 0;
- //}}AFX_DATA_INIT
- }
- void CDialogFFTPara::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDialogFFTPara)
- DDX_Control(pDX, IDC_SCROLLBAR_FFT_POWER, m_cScrollBarFFTPower);
- DDX_Text(pDX, IDC_EDIT_FFT_POWER, m_nEditPower);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDialogFFTPara, CDialog)
- //{{AFX_MSG_MAP(CDialogFFTPara)
- ON_EN_CHANGE(IDC_EDIT_FFT_POWER, OnChangeEditFftPower)
- ON_WM_HSCROLL()
- ON_WM_VSCROLL()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDialogFFTPara message handlers
- void CDialogFFTPara::OnChangeEditFftPower()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the CDialog::OnInitDialog()
- // function and call CRichEditCtrl().SetEventMask()
- // with the ENM_CHANGE flag ORed into the mask.
- // TODO: Add your control notification handler code here
- UpdateData(TRUE);
- }
- void CDialogFFTPara::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
- {
- // TODO: Add your message handler code here and/or call default
- CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
- }
- void CDialogFFTPara::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
- {
- UpdateData(TRUE);
- if(&m_cScrollBarFFTPower == pScrollBar)
- {
- switch(nSBCode)
- {
- case SB_LINEUP:
- if(m_nEditPower<16) m_nEditPower++;
- break;
- case SB_LINEDOWN:
- if(m_nEditPower) m_nEditPower--;
- break;
- }
- UpdateData(FALSE);
- }
- CDialog::OnVScroll(nSBCode, nPos, pScrollBar);
- }