home *** CD-ROM | disk | FTP | other *** search
/ distrib.akp.su/Programming/Vb-6+Rus/ / distrib.akp.su.tar / distrib.akp.su / Programming / Vb-6+Rus / COMMON / MSDEV98 / BIN / IDE / MFCAPWZ.DLL / TEMPLATE / FRAME.H < prev    next >
C/C++ Source or Header  |  1998-06-18  |  3KB  |  141 lines

  1. // $$frame_hfile$$.h : interface of the $$FRAME_CLASS$$ class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined($$FILE_NAME_SYMBOL$$_INCLUDED_)
  6. #define $$FILE_NAME_SYMBOL$$_INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11. $$IF(PROJTYPE_SDI)
  12. $$IF(PROJTYPE_EXPLORER)
  13.  
  14. class $$VIEW_CLASS$$;
  15. $$ELIF(NODOCVIEW)
  16.  
  17. #include "$$wndview_hfile$$.h"
  18. $$ENDIF
  19. $$ENDIF 
  20.  
  21. $$IF(PROJTYPE_MDI)
  22. class $$FRAME_CLASS$$ : public $$FRAME_BASE_CLASS$$
  23. {
  24.     DECLARE_DYNAMIC($$FRAME_CLASS$$)
  25. public:
  26.     $$FRAME_CLASS$$();
  27. $$ELSE // SDI
  28. class $$FRAME_CLASS$$ : public $$FRAME_BASE_CLASS$$
  29. {
  30.     
  31. $$IF(NODOCVIEW)
  32. public:
  33.     $$FRAME_CLASS$$();
  34. protected: 
  35.     DECLARE_DYNAMIC($$FRAME_CLASS$$)
  36. $$ELSE
  37. protected: // create from serialization only
  38.     $$FRAME_CLASS$$();
  39.     DECLARE_DYNCREATE($$FRAME_CLASS$$)
  40. $$ENDIF
  41. $$ENDIF // PROJTYPEMDI
  42.  
  43. // Attributes
  44. $$IF(SPLITTER_SDI || PROJTYPE_EXPLORER)
  45. $$IF(PROJTYPE_SDI)
  46. protected:
  47.     CSplitterWnd m_wndSplitter;
  48. $$ENDIF 
  49. $$ENDIF //SPLITTER_SDI
  50. public:
  51.  
  52. // Operations
  53. public:
  54.  
  55. // Overrides
  56.     // ClassWizard generated virtual function overrides
  57.     //{{AFX_VIRTUAL($$FRAME_CLASS$$)
  58. $$IF(SPLITTER_SDI || FRAME_STYLES || PROJTYPE_EXPLORER)
  59.     public:
  60. $$ENDIF
  61. $$IF(SPLITTER_SDI || PROJTYPE_EXPLORER)
  62. $$IF(PROJTYPE_SDI)
  63.     virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  64. $$ENDIF 
  65. $$ENDIF
  66.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  67. $$IF(NODOCVIEW)
  68. $$IF(PROJTYPE_SDI)
  69.     virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  70. $$ENDIF 
  71. $$ENDIF
  72.     //}}AFX_VIRTUAL
  73.  
  74. // Implementation
  75. public:
  76.     virtual ~$$FRAME_CLASS$$();
  77. $$IF(PROJTYPE_SDI)
  78. $$IF(PROJTYPE_EXPLORER)
  79. $$IF(CListView)
  80.     $$VIEW_CLASS$$* GetRightPane();
  81. $$ENDIF    // CListView
  82. $$ENDIF    // PROJTYPE_EXPLORER
  83. $$ENDIF    // PROJTYPE_SDI
  84. #ifdef _DEBUG
  85.     virtual void AssertValid() const;
  86.     virtual void Dump(CDumpContext& dc) const;
  87. #endif
  88. $$IF(TOOLBAR || STATUSBAR || REBAR)
  89.  
  90. protected:  // control bar embedded members
  91. $$IF(STATUSBAR)    
  92.     CStatusBar  m_wndStatusBar;
  93. $$ENDIF //STATUSBAR
  94. $$IF(TOOLBAR)
  95.     CToolBar    m_wndToolBar;
  96. $$ENDIF //TOOLBAR
  97. $$IF(REBAR)
  98.     CReBar      m_wndReBar;
  99.     CDialogBar      m_wndDlgBar;
  100. $$ENDIF //REBAR
  101. $$ENDIF //TOOLBAR || STATUSBAR || REBAR
  102. $$IF(NODOCVIEW)
  103. $$IF(PROJTYPE_SDI)
  104.     $$WNDVIEW_CLASS$$    m_wndView;
  105. $$ENDIF 
  106. $$ENDIF
  107.  
  108. // Generated message map functions
  109. protected:
  110.     //{{AFX_MSG($$FRAME_CLASS$$)
  111. $$IF(TOOLBAR || STATUSBAR || REBAR)
  112.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  113. $$ENDIF //TOOLBAR || STATUSBAR || REBAR
  114. $$IF(NODOCVIEW)
  115. $$IF(PROJTYPE_SDI)
  116.     afx_msg void OnSetFocus(CWnd *pOldWnd);
  117. $$ENDIF 
  118. $$ENDIF
  119. $$IF(VERBOSE)
  120.         // NOTE - the ClassWizard will add and remove member functions here.
  121.         //    DO NOT EDIT what you see in these blocks of generated code!
  122. $$ENDIF
  123.     //}}AFX_MSG
  124. $$IF(PROJTYPE_EXPLORER)
  125. $$IF(PROJTYPE_SDI)
  126. $$IF(CListView)
  127.     afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
  128.     afx_msg void OnViewStyle(UINT nCommandID);
  129. $$ENDIF
  130. $$ENDIF
  131. $$ENDIF
  132.     DECLARE_MESSAGE_MAP()
  133. };
  134.  
  135. /////////////////////////////////////////////////////////////////////////////
  136.  
  137. //{{AFX_INSERT_LOCATION}}
  138. // $$INSERT_LOCATION_COMMENT$$
  139.  
  140. #endif // !defined($$FILE_NAME_SYMBOL$$_INCLUDED_)
  141.