Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
3.1 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. // MainFrm.h : interface of the CMainFrame class
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10. #if !defined(AFX_MAINFRM_H__4419F1A8_692B_11D3_BD30_0080C8E60955__INCLUDED_)
  11. #define AFX_MAINFRM_H__4419F1A8_692B_11D3_BD30_0080C8E60955__INCLUDED_
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif // _MSC_VER > 1000
  15. #include "ToolBarEx.h"
  16. class CObjView;
  17. enum IMAGE_INDEXES
  18. {
  19. IMAGE_ROOT,
  20. // Operation images
  21. IMAGE_QUERY,
  22. IMAGE_QUERY_BUSY,
  23. IMAGE_QUERY_ERROR,
  24. IMAGE_EVENT_QUERY,
  25. IMAGE_EVENT_QUERY_BUSY,
  26. IMAGE_EVENT_QUERY_ERROR,
  27. IMAGE_ENUM_OBJ,
  28. IMAGE_ENUM_OBJ_BUSY,
  29. IMAGE_ENUM_OBJ_ERROR,
  30. IMAGE_ENUM_CLASS,
  31. IMAGE_ENUM_CLASS_BUSY,
  32. IMAGE_ENUM_CLASS_ERROR,
  33. IMAGE_CLASS,
  34. IMAGE_CLASS_BUSY,
  35. IMAGE_CLASS_ERROR,
  36. IMAGE_CLASS_MODIFIED,
  37. IMAGE_OBJECT,
  38. IMAGE_OBJECT_BUSY,
  39. IMAGE_OBJECT_ERROR,
  40. IMAGE_OBJECT_MODIFIED,
  41. // Property images
  42. IMAGE_PROP_OBJECT,
  43. IMAGE_PROP_OBJECT_KEY,
  44. IMAGE_PROP_TEXT,
  45. IMAGE_PROP_TEXT_KEY,
  46. IMAGE_PROP_BINARY,
  47. IMAGE_PROP_BINARY_KEY,
  48. };
  49. class CMainFrame : public CFrameWnd
  50. {
  51. protected: // create from serialization only
  52. CMainFrame();
  53. DECLARE_DYNCREATE(CMainFrame)
  54. // Attributes
  55. protected:
  56. CSplitterWnd m_wndSplitter;
  57. public:
  58. CImageList m_imageList;
  59. // Operations
  60. public:
  61. // Overrides
  62. // ClassWizard generated virtual function overrides
  63. //{{AFX_VIRTUAL(CMainFrame)
  64. public:
  65. virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  66. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  67. protected:
  68. //}}AFX_VIRTUAL
  69. //virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  70. // Implementation
  71. public:
  72. virtual ~CMainFrame();
  73. CObjView* GetRightPane();
  74. #ifdef _DEBUG
  75. virtual void AssertValid() const;
  76. virtual void Dump(CDumpContext& dc) const;
  77. #endif
  78. void SetStatusText(LPCTSTR szText);
  79. protected: // control bar embedded members
  80. CStatusBar m_wndStatusBar;
  81. CToolBarEx m_wndToolBar;
  82. CReBar m_wndReBar;
  83. CString m_strStatus;
  84. void AddImage(DWORD dwID, COLORREF cr);
  85. void AddOverlayedImage(int iImage, int iOverlay, COLORREF cr);
  86. void AddImageAndBusyImage(int iImage, COLORREF cr);
  87. void AddImageAndKeyImage(int iImage, COLORREF cr);
  88. // Generated message map functions
  89. protected:
  90. //{{AFX_MSG(CMainFrame)
  91. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  92. afx_msg void OnClose();
  93. afx_msg void OnUpdateStatusNumberObjects(CCmdUI* pCmdUI);
  94. afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
  95. //}}AFX_MSG
  96. //afx_msg void OnInitMenu(CMenu* pMenu);
  97. afx_msg LRESULT OnEnterMenuLoop(WPARAM wParam, LPARAM lParam);
  98. afx_msg LRESULT OnExitMenuLoop(WPARAM wParam, LPARAM lParam);
  99. DECLARE_MESSAGE_MAP()
  100. };
  101. /////////////////////////////////////////////////////////////////////////////
  102. //{{AFX_INSERT_LOCATION}}
  103. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  104. #endif // !defined(AFX_MAINFRM_H__4419F1A8_692B_11D3_BD30_0080C8E60955__INCLUDED_)