home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / npp / npview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.2 KB  |  89 lines

  1. // npview.h : interface of the CNotepadView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #ifndef __INC_NPVIEW_H__
  6. #define __INC_NPVIEW_H__
  7.  
  8. #if (_WIN32_WCE <= 200)
  9. // This sample had its own find dialog under H/PC 2.0.  Newer OS's have an 
  10. // improved find dialog box and this sample uses it instead.
  11. class CFindDlg;        // forward declarations
  12. #endif (_WIN32_WCE <= 200)
  13. class CGotoDlg;        
  14.  
  15. #include "npdoc.h"
  16.  
  17. class CNotepadView : public CEditView
  18. {
  19. protected: // create from serialization only
  20.     CNotepadView();
  21.     DECLARE_DYNCREATE(CNotepadView)
  22.  
  23. // Attributes
  24. public:
  25.     CNotepadDoc* GetDocument();
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CNotepadView)
  33.     public:
  34.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35.     virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  36.     //}}AFX_VIRTUAL
  37.  
  38. public:
  39. // Attributes
  40. #if (_WIN32_WCE <= 200)
  41.     CFindDlg*      m_pFindDialog;                // find dialog
  42. #endif (_WIN32_WCE <= 200)
  43.     CGotoDlg*     m_pGotoDialog;                // goto line number dialog
  44.  
  45. #if (_WIN32_WCE <= 200)
  46. public:
  47. // Operations
  48.     void OnViewFindNext(CString &s1);
  49. #endif (_WIN32_WCE <= 200)
  50.  
  51. #if !defined(_WIN32_WCE_PSPC)
  52.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  53. #endif
  54.  
  55. // Implementation
  56. public:
  57.     virtual ~CNotepadView();
  58. #ifdef _DEBUG
  59.     virtual void AssertValid() const;
  60.     virtual void Dump(CDumpContext& dc) const;
  61. #endif
  62.  
  63. protected:
  64.  
  65. // Generated message map functions
  66. protected:
  67.     //{{AFX_MSG(CNotepadView)
  68.     afx_msg void OnEditGoto();
  69.     afx_msg void OnUpdateEditGoto(CCmdUI* pCmdUI);
  70. #if (_WIN32_WCE <= 200)
  71.     afx_msg void OnEditFind();
  72.     afx_msg void OnUpdateEditFind(CCmdUI* pCmdUI);
  73.     afx_msg void OnViewFindNext();
  74. #endif (_WIN32_WCE <= 200)
  75.     afx_msg void OnEditPaste();
  76.     afx_msg void OnEditCopy();
  77.     //}}AFX_MSG
  78.  
  79.     DECLARE_MESSAGE_MAP()
  80. };
  81.  
  82. #ifndef _DEBUG  // debug version in npview.cpp
  83. inline CNotepadDoc* CNotepadView::GetDocument()
  84.    { return (CNotepadDoc*)m_pDocument; }
  85. #endif
  86.  
  87. #endif // __INC_NPVIEW_H__
  88. /////////////////////////////////////////////////////////////////////////////
  89.