home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / AutoPC / apcsdk10.exe / data1.cab / Win32_Samples / win32 / tts / app.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  2.3 KB  |  82 lines

  1. //+----------------------------------------------------------------------------
  2. // 
  3. // File:        app.h
  4. //
  5. // Copyight:    (c) 1997, Microsoft Corporation
  6. //                 All Rights Reserved
  7. //                Infomation Contained Herein Is Propprietary and Confidential
  8. //
  9. // Contents:     simple app defines, prototypes & external data 
  10. //                declarations
  11. //
  12. //-----------------------------------------------------------------------------
  13.  
  14. #ifndef CAPP_H
  15. #define CAPP_H
  16. #include "appsink.h"
  17. #include <apcspch.h>
  18.  
  19. class CTTSApp 
  20. {
  21. // Methods
  22.     public:
  23.         CTTSApp( HINSTANCE hInst );
  24.         ~CTTSApp();
  25.  
  26.         BOOL    Init(VOID);
  27.         BOOL    LoadBSTR(UINT uID, BSTR* pBStr);
  28.         VOID    ProcessMessage(LONG uMsg, LONG wParam, LONG lParam);
  29.         void    OnSpeakDone();
  30.         void    SetFocusOnId(long);
  31.         HRESULT GetFeedbackLevels();
  32.  
  33.     private:
  34.         HRESULT CreateSinks(VOID);
  35.         HRESULT GetFormsManager(VOID);
  36.         VOID    DeleteFormControls(VOID);
  37.         HRESULT    CreateMainForm(VOID);
  38.         HRESULT    CreateFormControls(VOID);
  39.         HRESULT    SpeechInit(void);
  40.         void    SpeakStop(VOID);
  41.  
  42.  
  43. // Properties
  44.     public:
  45.         BSTR                m_bszAppName;          // Application caption title.
  46.         BSTR                m_bszMenuName;        // caption on power list box
  47.         BSTR                m_bszMore;            // "More"
  48.         BSTR                m_bszLess;            // "Less"
  49.         BSTR                m_bszKeyFeedback;    // "Key Feedback level is"
  50.         BSTR                m_bszVoiceFeedback;    // "Voice Feedback level is"
  51.  
  52.         HINSTANCE            m_hInst;            // Instance handle
  53.         DWORD                m_idThread;            // the ID of the main application thread
  54.  
  55.     private:
  56.         IASEventSink*        m_pFormEventSink;    // the form's event sink
  57.         IASClassMsgSink*    m_pAppMessageSink;    // the message sink
  58.         IASEventSink*        m_pAppEventSink;    // the form's event sink
  59.         IfmManage*            m_pManage;          // the forms manager object
  60.         IASForm*            m_pForm;            // the main application form
  61.         IASPowerListBox*    m_pListBox;            // the list box
  62.  
  63.         IAPCSpeech*            m_pSpeech;            // The apcspch object
  64.         DWORD                m_dwKeyFeedback;    // Current key Feedback level 
  65.         DWORD                m_dwVoiceFeedback;    // Current voice Feedback level
  66.  
  67.         OLE_HANDLE            m_hFC;                // The form context handle
  68.         long                m_xres;                // Screen x resolution
  69.         long                m_yres;                // Screen y resolution
  70.  
  71.         BOOL                m_bExiting;            // Was exit selected?
  72.  
  73.  
  74.  
  75. };
  76.  
  77.  
  78. extern    CTTSApp* g_pApp;
  79.  
  80. #endif //CAPP_H    
  81.  
  82.