ResourceEditorView.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:3k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // ResourceEditorView.h : interface of the CResourceEditorView class
  2. //
  3. // This file is a part of the XTREME TOOLKIT PRO MFC class library.
  4. // (c)1998-2008 Codejock Software, All Rights Reserved.
  5. //
  6. // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
  7. // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
  8. // CONSENT OF CODEJOCK SOFTWARE.
  9. //
  10. // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
  11. // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
  12. // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
  13. // SINGLE COMPUTER.
  14. //
  15. // CONTACT INFORMATION:
  16. // support@codejock.com
  17. // http://www.codejock.com
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #if !defined(AFX_RESOURCEEDITORVIEW_H__A62B9FEA_8999_4102_9673_F37906068799__INCLUDED_)
  21. #define AFX_RESOURCEEDITORVIEW_H__A62B9FEA_8999_4102_9673_F37906068799__INCLUDED_
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. class CResourceViewRecord;
  26. class CResourceEditorView : public CXTPReportView
  27. {
  28. protected: // create from serialization only
  29. CResourceEditorView();
  30. DECLARE_DYNCREATE(CResourceEditorView)
  31. // Attributes
  32. public:
  33. CResourceEditorDoc* GetDocument();
  34. // Operations
  35. public:
  36. BOOL PreCreateWindow(CREATESTRUCT& cs);
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CResourceEditorView)
  40. public:
  41. virtual void OnInitialUpdate();
  42. protected:
  43. virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. public:
  47. virtual ~CResourceEditorView();
  48. #ifdef _DEBUG
  49. virtual void AssertValid() const;
  50. virtual void Dump(CDumpContext& dc) const;
  51. #endif
  52. protected:
  53. void PopulateResources();
  54. void PopulateStringResources(CTreeCtrl& wndResourceTree, CXTPPropExchange* pResources, HTREEITEM hItemStrings);
  55. void PopulateMenuResources(CTreeCtrl& wndResourceTree, CXTPPropExchange* pResources, HTREEITEM hItemMenus);
  56. void PopulateDialogResources(CTreeCtrl& wndResourceTree, CXTPPropExchange* pResources, HTREEITEM hItemDialogs);
  57. void PopulateDialogControlsResources(CResourceViewRecord* pDialogRecord, CXTPPropExchange* pResourceDialog);
  58. void PopulateMenuItemsResources(CXTPReportRecord* pMenuBase, CXTPReportRecord* pMenuRecord, CXTPPropExchange* pResourceMenu);
  59. void LoadXMLString(CXTPPropExchange* pPX, LPCTSTR pszPropName, CString& strValue);
  60. // Generated message map functions
  61. protected:
  62. //{{AFX_MSG(CResourceEditorView)
  63. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  64. //}}AFX_MSG
  65. void OnReportValueChanged(NMHDR * pNotifyStruct, LRESULT * /*result*/);
  66. void OnReportSelectionChanged(NMHDR * pNotifyStruct, LRESULT * /*result*/);
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. #ifndef _DEBUG  // debug version in ResourceEditorView.cpp
  70. inline CResourceEditorDoc* CResourceEditorView::GetDocument()
  71.    { return (CResourceEditorDoc*)m_pDocument; }
  72. #endif
  73. /////////////////////////////////////////////////////////////////////////////
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  76. #endif // !defined(AFX_RESOURCEEDITORVIEW_H__A62B9FEA_8999_4102_9673_F37906068799__INCLUDED_)