home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / msj / v10n10 / cppq1195.exe / MAINFRM.H < prev    next >
C/C++ Source or Header  |  1995-10-01  |  1KB  |  44 lines

  1. #include "bufwnd.h"
  2.  
  3. /////////////////
  4. // Main frame window for TRACEWIN contains trace buffer as child window, 
  5. // not a view.
  6. //
  7. class CMainFrame : public CFrameWnd {
  8.     DECLARE_DYNAMIC(CMainFrame)
  9.     CBufWnd        m_wndBuffer;        // TRACE buffer
  10.     CFile            m_file;                // if outputting to file
  11.     UINT            m_nOutputWhere;    // where to output
  12.  
  13.     // helpers
  14.     BOOL OpenFile(CFile& f, LPCSTR lpszPathName);    // helper
  15.     void SaveSettings();
  16.  
  17. public:
  18.     CMainFrame();
  19.     virtual ~CMainFrame();
  20.  
  21. protected:
  22.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  23.     virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra,
  24.         AFX_CMDHANDLERINFO* pHandlerInfo);
  25.  
  26.     //{{AFX_MSG(CMainFrame)
  27.     afx_msg LRESULT OnTraceMsg(WPARAM wp, LPARAM lp);
  28.     afx_msg int  OnCreate(LPCREATESTRUCT lpCreateStruct);
  29.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  30.     afx_msg void OnClose();
  31.  
  32.     afx_msg void OnFileSaveAs();
  33.     afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI);
  34.     afx_msg void OnOutputOff();
  35.     afx_msg void OnUpdateOutputOff(CCmdUI* pCmdUI);
  36.     afx_msg void OnOutputToFile();
  37.     afx_msg void OnUpdateOutputToFile(CCmdUI* pCmdUI);
  38.     afx_msg void OnOutputToWindow();
  39.     afx_msg void OnUpdateOutputToWindow(CCmdUI* pCmdUI);
  40.  
  41.     //}}AFX_MSG
  42.     DECLARE_MESSAGE_MAP()
  43. };
  44.