www.pudn.com > Observerwangdxh.zip > PgmCtrl.h


// PgmCtrl.h : interface of the CProgramControl class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#ifndef _PROGRAMCONTROL 
#define _PROGRAMCONTROL 
 
#include "CardioMon.h" 
 
class CProgramControl : public CCardioMonitor 
{ 
	// Constructor and Destructor 
	public : 
		CProgramControl( CCardioSubject * ); 
		virtual ~CProgramControl(); 
 
	// Methods 
	public : 
		virtual BOOL Update( CSubject * ); 
		BOOL Create( const RECT &, CWnd *, UINT ); 
		CComboBox & GetProgramCombo(); 
		void SetEffortLevelRange( INT, INT, INT ); 
 
	// Generated message map functions 
	protected: 
	//{{AFX_MSG(CTimeMonitor) 
		// NOTE - the ClassWizard will add and remove member functions here. 
		afx_msg void OnPaint(); 
	//}}AFX_MSG 
		afx_msg void OnProgramChange(); 
		afx_msg void OnDeltaposEffortLevel(NMHDR* pNMHDR, LRESULT* pResult); 
	DECLARE_MESSAGE_MAP() 
 
	private : 
		CEdit				m_EffortEdit; 
		CSpinButtonCtrl		m_EffortLevel; 
		CComboBox			m_ProgramList; 
}; 
#endif