home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / msj / v10n08 / sketchsc.exe / USER.H < prev   
C/C++ Source or Header  |  1995-08-01  |  2KB  |  66 lines

  1. //-----------------------------------------------------------------------
  2. // USER.H:  Definitions for the user_interface (view) class
  3. //-----------------------------------------------------------------------
  4.  
  5. #ifndef USER_H__
  6. #define USER_H__
  7.  
  8. #include "stroke.h"
  9. #include "data.h"
  10.  
  11. class user_interface : public CScrollView
  12. {
  13. protected: // create from serialization only
  14.     virtual
  15.     ~user_interface();
  16.      user_interface();
  17.     DECLARE_DYNCREATE(user_interface)
  18.  
  19. private:
  20.     data_interface    *GetDocument( void );
  21.     drawing_element    *dwg_object;
  22.     unsigned        display_as_text : 1;
  23.  
  24. public:
  25.     void new_drawing_element( drawing_element *element );
  26.  
  27. #ifdef _DEBUG
  28.     virtual void AssertValid() const;
  29.     virtual void Dump(CDumpContext& dc) const;
  30. #endif
  31.  
  32.     protected:
  33.     //{{AFX_MSG(user_interface)
  34.     afx_msg void OnDisplayastext();
  35.     afx_msg void OnUpdateDisplayastext(CCmdUI* pCmdUI);
  36.     afx_msg void OnLButtonDown( UINT flags, CPoint point );
  37.     afx_msg void OnMouseMove( UINT flags, CPoint point );
  38.     afx_msg void OnLButtonUp( UINT flags, CPoint point );
  39.     afx_msg    void OnSize(UINT nType, int cx, int cy);
  40.     afx_msg void OnTraceline();
  41.     //}}AFX_MSG
  42.  
  43.     // ClassWizard generated virtual function overrides
  44.     //{{AFX_VIRTUAL(user_interface)
  45.     public:
  46.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  47.     protected:
  48.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  49.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  50.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  51.     virtual void OnUpdate( CView* pSender, LPARAM lHint, CObject* pHint );
  52.     virtual void OnInitialUpdate();
  53.     //}}AFX_VIRTUAL
  54.  
  55.     DECLARE_MESSAGE_MAP()
  56. };
  57.  
  58. #ifndef _DEBUG  // debug version in sketcvw.cpp
  59. inline data_interface* user_interface::GetDocument()
  60.    { return (data_interface*)m_pDocument; }
  61. #endif
  62.  
  63. /////////////////////////////////////////////////////////////////////////////
  64.  
  65. #endif // USER_H__
  66.