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

  1. /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2.  
  3. Copyright (c) 1998 Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     SimpleClockApp.h
  8.  
  9. Abstract:
  10.  
  11.     CSimpleClockApp class definition and Control IDs
  12.  
  13. Environment:
  14.  
  15.     AutoPC
  16.  
  17. -------------------------------------------------------------------*/
  18.  
  19. #ifndef SIMPLECLOCKAPP_H
  20. #define SIMPLECLOCKAPP_H
  21.  
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif // _MSC_VER >= 1000
  25.  
  26. //App class definition
  27. class CSimpleClockApp  
  28. {
  29. //Methods
  30. public:
  31.     CSimpleClockApp( DWORD dwThreadID);
  32.     virtual ~CSimpleClockApp();
  33.     void ProcessMessage(LONG uMsg, LONG wParam, LONG lParam); //Handles stray messages
  34.     void Clean();                //Releases everything used by App
  35.  
  36. private:
  37.     BOOL CreateSinks();            //Creates a IASEventSink and IASClassMsgSink
  38.     BOOL CreateFormsManager();    //Creates and starts the forms manager
  39.     BOOL CreateMainForm();        //Creates main form
  40.     BOOL AddControls();            //Adds the clock and label control
  41.     BOOL LoadBSTR(UINT uID, BSTR * pbstrTarget); //Loads a bstr from a resource
  42.  
  43. //Properties
  44. public:
  45.     HINSTANCE m_hInst;
  46.     BOOL Init();
  47.     DWORD                m_dwThreadID;
  48.  
  49. private:
  50.     BSTR m_bstrExitText;                    //text telling how to exit
  51.     BSTR m_bstrAppName;                        //text of the app name
  52.     OLE_HANDLE            m_hFC;                //Form context handle
  53.     IASEventSink*        m_pFormEventSink;    //Event sink attatched to main form
  54.     IASClassMsgSink*    m_pFmMsgSink;        //Message sink attatched to form manager(App)
  55.     IfmManage*            m_pManager;            //Forms manager 
  56.     IASForm*            m_pForm;            //The one and only form 
  57.     IASLabel*            m_pLabel;            //Label control
  58.     IASClock*            m_pClock;            //Clock control
  59.  
  60. };
  61.  
  62. #endif // SIMPLECLOCKAPP_H
  63.