home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / chkbook / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.1 KB  |  71 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. #ifndef __INC_MAINFRM_H__
  15. #define __INC_MAINFRM_H__
  16.  
  17. // Array for the toolbar buttons
  18.  
  19. #if (_WIN32_WCE <= 200)
  20. static TBBUTTON g_arCBButtons[] = {
  21.     { 0,    0,                    TBSTATE_ENABLED, TBSTYLE_SEP,        0, 0, 0, -1},
  22.     { 0,    ID_EDIT_NEW_CHECK,    TBSTATE_ENABLED, TBSTYLE_BUTTON,    0, 0, 0,  0},
  23.     { 0,    0,                    TBSTATE_ENABLED, TBSTYLE_SEP,        0, 0, 0, -1},
  24.     { 1,    ID_EDIT_COMMIT,        TBSTATE_ENABLED, TBSTYLE_BUTTON,    0, 0, 0,  1},
  25.     { 0,    0,                    TBSTATE_ENABLED, TBSTYLE_SEP,        0, 0, 0, -1},
  26.     { 2,    ID_PREV_CHECK,        TBSTATE_ENABLED, TBSTYLE_BUTTON,    0, 0, 0,  2},
  27.     { 3,    ID_NEXT_CHECK,        TBSTATE_ENABLED, TBSTYLE_BUTTON,    0, 0, 0,  3},
  28.     { 0,    0,                    TBSTATE_ENABLED, TBSTYLE_SEP,        0, 0, 0, -1}
  29. };
  30. #endif
  31.  
  32. class CMainFrame : public CFrameWnd
  33. {
  34. public: // create from serialization only
  35.     CMainFrame();
  36.     DECLARE_DYNCREATE(CMainFrame)
  37.  
  38. // Attributes
  39. public:
  40. #if (_WIN32_WCE > 200)
  41.     CCeCommandBar m_wndCommandBar;
  42. #endif
  43.  
  44. // Operations
  45. public:
  46.  
  47. // Overrides
  48.     // ClassWizard generated virtual function overrides
  49.     //{{AFX_VIRTUAL(CMainFrame)
  50.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  51.     //}}AFX_VIRTUAL
  52.  
  53. // Implementation
  54. public:
  55.     virtual ~CMainFrame();
  56. #ifdef _DEBUG
  57.     virtual void AssertValid() const;
  58.     virtual void Dump(CDumpContext& dc) const;
  59. #endif
  60.  
  61. // Generated message map functions
  62. protected:
  63.     //{{AFX_MSG(CMainFrame)
  64.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  65.     //}}AFX_MSG
  66.     DECLARE_MESSAGE_MAP()
  67. };
  68.  
  69. #endif // __INC_MAINFRM_H__
  70. /////////////////////////////////////////////////////////////////////////////
  71.