TTSpeechDlg.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // TTSpeechDlg.h : 头文件
  2. //
  3. #pragma once
  4. #include "afxwin.h"
  5. #include "afxcmn.h"
  6. typedef struct __STVOICES
  7. {
  8. ULONG uVoiceIndex; // 语音在系统中的索引位置;
  9. TCHAR szDescription[MAX_PATH]; // 语音在系统中的名称描述;
  10. __STVOICES()
  11. {
  12. uVoiceIndex = -1;
  13. memset(szDescription,0,MAX_PATH);
  14. }
  15. }STVoices,*pSTVoices;
  16. // CTTSpeechDlg 对话框
  17. class CTTSpeechDlg : public CDialog
  18. {
  19. // 构造
  20. public:
  21. CTTSpeechDlg(CWnd* pParent = NULL); // 标准构造函数
  22. // 对话框数据
  23. enum { IDD = IDD_TTSPEECH_DIALOG };
  24. protected:
  25. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  26. // 实现
  27. protected:
  28. HICON m_hIcon;
  29. // 生成的消息映射函数
  30. virtual BOOL OnInitDialog();
  31. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  32. afx_msg void OnPaint();
  33. afx_msg HCURSOR OnQueryDragIcon();
  34. DECLARE_MESSAGE_MAP()
  35. public:
  36. int m_nVoices;
  37. STVoices *m_pSTVoices;
  38. CComboBox m_combobox;
  39. afx_msg void OnBnClickedInitvoices();
  40. afx_msg void OnBnClickedExitvoices();
  41. afx_msg void OnBnClickedCreatewav();
  42. afx_msg void OnBnClickedPlaywav();
  43. afx_msg void OnBnClickedOk();
  44. afx_msg void OnBnClickedCancel();
  45. afx_msg void OnBnClickedPlay();
  46. afx_msg void OnCbnSelchangeCombo1();
  47. CSliderCtrl m_VoicesRate;
  48. CSliderCtrl m_VoicesVolume;
  49. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  50. afx_msg void OnEnChangeEdit1();
  51. };