home *** CD-ROM | disk | FTP | other *** search
- //+----------------------------------------------------------------------------
- //
- // File: app.h
- //
- // Copyight: (c) 1997, Microsoft Corporation
- // All Rights Reserved
- // Infomation Contained Herein Is Propprietary and Confidential
- //
- // Contents: simple app defines, prototypes & external data
- // declarations
- //
- //-----------------------------------------------------------------------------
-
- #ifndef CAPP_H
- #define CAPP_H
- #include "appsink.h"
- #include <apcspch.h>
-
- class CTTSApp
- {
- // Methods
- public:
- CTTSApp( HINSTANCE hInst );
- ~CTTSApp();
-
- BOOL Init(VOID);
- BOOL LoadBSTR(UINT uID, BSTR* pBStr);
- VOID ProcessMessage(LONG uMsg, LONG wParam, LONG lParam);
- void OnSpeakDone();
- void SetFocusOnId(long);
- HRESULT GetFeedbackLevels();
-
- private:
- HRESULT CreateSinks(VOID);
- HRESULT GetFormsManager(VOID);
- VOID DeleteFormControls(VOID);
- HRESULT CreateMainForm(VOID);
- HRESULT CreateFormControls(VOID);
- HRESULT SpeechInit(void);
- void SpeakStop(VOID);
-
-
- // Properties
- public:
- BSTR m_bszAppName; // Application caption title.
- BSTR m_bszMenuName; // caption on power list box
- BSTR m_bszMore; // "More"
- BSTR m_bszLess; // "Less"
- BSTR m_bszKeyFeedback; // "Key Feedback level is"
- BSTR m_bszVoiceFeedback; // "Voice Feedback level is"
-
- HINSTANCE m_hInst; // Instance handle
- DWORD m_idThread; // the ID of the main application thread
-
- private:
- IASEventSink* m_pFormEventSink; // the form's event sink
- IASClassMsgSink* m_pAppMessageSink; // the message sink
- IASEventSink* m_pAppEventSink; // the form's event sink
- IfmManage* m_pManage; // the forms manager object
- IASForm* m_pForm; // the main application form
- IASPowerListBox* m_pListBox; // the list box
-
- IAPCSpeech* m_pSpeech; // The apcspch object
- DWORD m_dwKeyFeedback; // Current key Feedback level
- DWORD m_dwVoiceFeedback; // Current voice Feedback level
-
- OLE_HANDLE m_hFC; // The form context handle
- long m_xres; // Screen x resolution
- long m_yres; // Screen y resolution
-
- BOOL m_bExiting; // Was exit selected?
-
-
-
- };
-
-
- extern CTTSApp* g_pApp;
-
- #endif //CAPP_H
-
-