www.pudn.com > speech1.rar > SpecchDlg.h


// SpecchDlg.h : header file 
// 
 
#if !defined(AFX_SPECCHDLG_H__3FEA461F_D161_49A4_B646_C33CA7B64D0E__INCLUDED_) 
#define AFX_SPECCHDLG_H__3FEA461F_D161_49A4_B646_C33CA7B64D0E__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#define WM_TRAY		WM_USER + 100 
 
#include "sapi.h" 
#include "WorkChangeDlg.h" 
#include "HolidayChangeDlg.h" 
#include "SoundSet.h" 
#include "AlarmSet.h" 
#include "WorkSet.h" 
#include "HolidaySet.h" 
#include "ViewWork.h" 
#include  
//#include "CWorkInfo.h" 
//#include "Message.h" 
 
//#define		ID_ALARM_TIME	3    // 闹钟定时器 
//#define		ID_HOLIDAY_TIME		4     // 节假日定时器 
/*#define		ID_WORK_TIME		5     // 工作提示定时器*/ 
 
class CSpecchDlgAutoProxy; 
 
///////////////////////////////////////////////////////////////////////////// 
// CSpecchDlg dialog 
 
class CSpecchDlg : public CDialog 
{ 
	DECLARE_DYNAMIC(CSpecchDlg); 
	friend class CSpecchDlgAutoProxy; 
 
// Construction 
public: 
	void WriteFileData(); 
	void ReadFileData(); 
	CSpecchDlg(CWnd* pParent = NULL);	// standard constructor 
	virtual ~CSpecchDlg(); 
 
// Dialog Data 
	//{{AFX_DATA(CSpecchDlg) 
	enum { IDD = IDD_SPECCH_DIALOG }; 
	CListCtrl	m_holidayList; 
	CListCtrl	m_list; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CSpecchDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	void ShowWorkList(); 
	void ShowHolidayList(CHolidayChangeDlg &ed); 
	void ShowWorkList(CWorkChangeDlg &ed); 
	void IsTimeUp(); 
	CString GetWarnString(int i); 
	int GetWarnType(CString strWarnType); 
	int GetSpeaker(CString strspeaker); 
	void ShowHolidayList(); 
	void Display(); 
	CSpecchDlgAutoProxy* m_pAutoProxy; 
	HICON m_hIcon; 
 
	BOOL CanExit(); 
 
	// Generated message map functions 
	//{{AFX_MSG(CSpecchDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnShowTask(WPARAM wParam , LPARAM lParam) ; 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnClose(); 
	virtual void OnOK(); 
	virtual void OnCancel(); 
	afx_msg void OnMain(); 
	afx_msg void OnSupport(); 
	afx_msg void OnExit(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnRclickWorklist(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnRclickHolidaylist(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnInfochange(); 
	afx_msg void OnGetdaystateMonthcalendar1(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnSoundset(); 
	afx_msg void OnAlarm(); 
	afx_msg void OnWorkset(); 
	afx_msg void OnHolidayset(); 
	afx_msg void OnViewwork(); 
	afx_msg void OnInfoadd(); 
	afx_msg void OnAbout(); 
	afx_msg void OnDel(); 
	afx_msg void OnDestroy(); 
	afx_msg void OnReleasedcaptureMonthcalendar1(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnSelectMonthcalendar1(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnHide(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	POSITION m_strWorkPos; 
	POSITION workPos; 
	POSITION pos; 
	bool m_bFind; 
	CString m_fileName; 
	NOTIFYICONDATA tnd ; 
	POSITION m_workTimePos; 
	int m_whichDayAlarm[7] ; 
	CString m_musicPath[3] ; 
	int m_alarmMinute; 
	int m_alarmHour; 
	CString m_strSpeakContent[3];     // 语音内容 
	CString m_speaker[3] ;            // 发音人物 
	CString m_strWarnType[3] ;        // 提示类型 
	CString m_strWhichDayAlarm[7] ; 
	int m_speakType[3] ; 
	int m_warnType[3] ; 
	int m_volume; 
	int m_rate; 
 	SYSTEMTIME m_st; 
 	SYSTEMTIME m_sysTime ; 
 	CTime m_time ; 
	int m_nIndex; 
	int m_listIndex; 
	int nHeight; 
	int dy1; 
	int dx1; 
	int dy; 
	int dx; 
	int nWidth; 
	CFont m_font; 
	CImageList m_imagelist; 
	CMonthCalCtrl* m_monthCalCtrl; 
	bool m_isShow; 
	CList m_timeList ; 
	CList m_strWorkList ; 
	CList m_holidayTimeList ; 
	CList m_strHolidayList ; 
 
	CLSID CLSID_SpVoice;    // class ID for the SAPI SpVoice object 
	LPDISPATCH pDisp[3];       // dispatch interface for the class 
	ISpeechVoice voice[3];     // use the MFC Class Wizard generated wrapper 
 
	ISpeechObjectTokens voiceList[3]; 
	ISpeechObjectToken recoObject; 
 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SPECCHDLG_H__3FEA461F_D161_49A4_B646_C33CA7B64D0E__INCLUDED_)