// TTSpeechDlg.h : 头文件 // #pragma once #include "afxwin.h" #include "afxcmn.h" typedef struct __STVOICES { ULONG uVoiceIndex; // 语音在系统中的索引位置; TCHAR szDescription[MAX_PATH]; // 语音在系统中的名称描述; __STVOICES() { uVoiceIndex = -1; memset(szDescription,0,MAX_PATH); } }STVoices,*pSTVoices; // CTTSpeechDlg 对话框 class CTTSpeechDlg : public CDialog { // 构造 public: CTTSpeechDlg(CWnd* pParent = NULL); // 标准构造函数 // 对话框数据 enum { IDD = IDD_TTSPEECH_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: HICON m_hIcon; // 生成的消息映射函数 virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: int m_nVoices; STVoices *m_pSTVoices; CComboBox m_combobox; afx_msg void OnBnClickedInitvoices(); afx_msg void OnBnClickedExitvoices(); afx_msg void OnBnClickedCreatewav(); afx_msg void OnBnClickedPlaywav(); afx_msg void OnBnClickedOk(); afx_msg void OnBnClickedCancel(); afx_msg void OnBnClickedPlay(); afx_msg void OnCbnSelchangeCombo1(); CSliderCtrl m_VoicesRate; CSliderCtrl m_VoicesVolume; afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnEnChangeEdit1(); };