home *** CD-ROM | disk | FTP | other *** search
- /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
- Copyright (c) 1998 Microsoft Corporation
-
- Module Name:
-
- SimpleClockApp.h
-
- Abstract:
-
- CSimpleClockApp class definition and Control IDs
-
- Environment:
-
- AutoPC
-
- -------------------------------------------------------------------*/
-
- #ifndef SIMPLECLOCKAPP_H
- #define SIMPLECLOCKAPP_H
-
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
-
- //App class definition
- class CSimpleClockApp
- {
- //Methods
- public:
- CSimpleClockApp( DWORD dwThreadID);
- virtual ~CSimpleClockApp();
- void ProcessMessage(LONG uMsg, LONG wParam, LONG lParam); //Handles stray messages
- void Clean(); //Releases everything used by App
-
- private:
- BOOL CreateSinks(); //Creates a IASEventSink and IASClassMsgSink
- BOOL CreateFormsManager(); //Creates and starts the forms manager
- BOOL CreateMainForm(); //Creates main form
- BOOL AddControls(); //Adds the clock and label control
- BOOL LoadBSTR(UINT uID, BSTR * pbstrTarget); //Loads a bstr from a resource
-
- //Properties
- public:
- HINSTANCE m_hInst;
- BOOL Init();
- DWORD m_dwThreadID;
-
- private:
- BSTR m_bstrExitText; //text telling how to exit
- BSTR m_bstrAppName; //text of the app name
- OLE_HANDLE m_hFC; //Form context handle
- IASEventSink* m_pFormEventSink; //Event sink attatched to main form
- IASClassMsgSink* m_pFmMsgSink; //Message sink attatched to form manager(App)
- IfmManage* m_pManager; //Forms manager
- IASForm* m_pForm; //The one and only form
- IASLabel* m_pLabel; //Label control
- IASClock* m_pClock; //Clock control
-
- };
-
- #endif // SIMPLECLOCKAPP_H
-