home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Large Pack of OldSkool DOS MOD Trackers
/
beaversweeper_v101.zip
/
src
/
TrackerControls.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2003-01-06
|
3KB
|
113 lines
// TrackerControls.cpp : implementation file
//
#include "stdafx.h"
#include "tracker.h"
#include "TrackerControls.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTrackerControls dialog
CTrackerControls::CTrackerControls(): CMyDialogBar()
{
//{{AFX_DATA_INIT(CTrackerControls)
m_pjumpEdit = 1;
m_cpuUsage = 0.0f;
m_scrollData = TRUE;
m_bpm = 0;
m_pattick = 0;
m_seqtick = 0;
m_defvelocity = 0;
//}}AFX_DATA_INIT
}
void CTrackerControls::DoDataExchange(CDataExchange* pDX)
{
CMyDialogBar::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTrackerControls)
DDX_Text(pDX, IDC_EDIT_TCNTRL_PJUMP, m_pjumpEdit);
DDV_MinMaxInt(pDX, m_pjumpEdit, 0, 32);
DDX_Text(pDX, IDC_EDIT_CPUUSAGE, m_cpuUsage);
DDX_Check(pDX, IDC_CHECK_PLAY_SCROLL, m_scrollData);
DDX_Text(pDX, IDC_EDIT_BPM, m_bpm);
DDX_Text(pDX, IDC_EDIT_PATTICK, m_pattick);
DDX_Text(pDX, IDC_EDIT_SEQTICK, m_seqtick);
DDX_Text(pDX, IDC_EDIT_TCNTRL_VCITY, m_defvelocity);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTrackerControls, CMyDialogBar)
//{{AFX_MSG_MAP(CTrackerControls)
ON_BN_CLICKED(IDC_CHECK_PLAY_SCROLL, OnCheckPlayScroll)
ON_WM_SIZE()
ON_WM_CANCELMODE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTrackerControls message handlers
/*
LRESULT CTrackerControls::WindowProc( UINT message, WPARAM wParam, LPARAM lParam )
{
LRESULT lResult = CMyDialogBar::WindowProc(message,wParam,lParam);
if(::IsWindow(m_hWnd))
{
CWnd *pWnd = GetParent();
if (pWnd != NULL)
{
pWnd->SetWindowText((LPCSTR)caption);
}
}
return lResult;
}
*/
BOOL CTrackerControls::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
return CMyDialogBar::PreCreateWindow(cs);
}
// m_pjumpSpin.SetRange(-32,32);
void CTrackerControls::OnCheckPlayScroll()
{
// TODO: Add your control notification handler code here
if (m_scrollData)
m_scrollData=FALSE;
else
m_scrollData=TRUE;
}
void CTrackerControls::OnSize(UINT nType, int cx, int cy)
{
CMyDialogBar::OnSize(nType, cx, cy);
OutputDebugString ("size\n");
// TODO: Add your message handler code here
}
void CTrackerControls::OnCancelMode()
{
CMyDialogBar::OnCancelMode();
// TODO: Add your message handler code here
}