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

  1. /////////////////
  2. // Buffer window for TRACEWIN.
  3. //
  4. // CBufWnd implements the trace buffer. 
  5. // Implements its own editing commands commands: Copy, Clear, Select All. 
  6. // In order to work, the CBufWnd must be connected to the app's command 
  7. // route by overriding CMainFrame::OnCmdMsg.
  8. //
  9. class CBufWnd : public CEdit {
  10.     CFont    m_font;                // monotype font
  11. public:
  12.     CBufWnd();
  13. public:
  14.     virtual ~CBufWnd();
  15.     BOOL Create(CWnd* pParentWnd, UINT nID);
  16.     BOOL IsEmpty();
  17. protected:
  18.     //{{AFX_MSG(CBufWnd)
  19.     afx_msg int  OnCreate(LPCREATESTRUCT lpCreateStruct);
  20.     afx_msg void OnEditClearAll();
  21.     afx_msg void OnEditCopy();
  22.     afx_msg void OnEditSelectAll();
  23.     afx_msg void OnUpdateEditClearAll(CCmdUI* pCmdUI);
  24.     afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
  25.     afx_msg void OnUpdateEditSelectAll(CCmdUI* pCmdUI);
  26.     //}}AFX_MSG
  27.     DECLARE_MESSAGE_MAP()
  28. };
  29.