home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / Mfcdevw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-10  |  5.5 KB  |  160 lines

  1. // mfcdevw.h : interface of the CMfcdemoView class
  2. // Copyright (C) 1990, 1998 LEAD Technologies, Inc.
  3. // All rights reserved.
  4.  
  5.  
  6. class CMfcdemoView : public CView
  7. {
  8. protected: // create from serialization only
  9.     CMfcdemoView();
  10.     DECLARE_DYNCREATE(CMfcdemoView)
  11.  
  12. // Attributes
  13. public:
  14.     CPalette *m_pPalette;
  15.     float m_nZoom;
  16.     int m_nEffect;
  17.     CRect m_rcDst;
  18.     int  m_nRegionTool;
  19.     int  m_nRegionType;
  20.     long m_xStart, m_yStart;
  21.     BOOL m_bMovingFloater;
  22.     CRect m_rcFloater;
  23. // Operations
  24. public:
  25.     CMfcdemoDoc* GetDocument();
  26.    CLead* GetDocLead();
  27.    CLead* GetUndoLead();
  28.    void OnChanged();
  29.    void SetZoom(float nZoom);
  30.    void BeginProcessing();
  31.    void EndProcessing(int nRet);
  32.    void SetRegionTool(int nNewRegionTool);
  33.    void UpdateMasterDocument();
  34.    void RestoreBackground();
  35.    void SaveBackground();
  36.     void OnImageRegiontransformationsFlip();
  37.     void OnImageRegiontransformationsResize();
  38.     void OnImageRegiontransformationsReverse();
  39.     void OnImageRegiontransformationsRotate();
  40.    void OnImageRegiontransformationsRotate(long nAngle, BOOL fResize = TRUE);
  41.  
  42. // Overrides
  43.     // ClassWizard generated virtual function overrides
  44.     //{{AFX_VIRTUAL(CMfcdemoView)
  45.     public:
  46.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  47.     virtual void OnInitialUpdate();
  48.     protected:
  49.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  50.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  51.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  52.     virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  53.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  54.     //}}AFX_VIRTUAL
  55.  
  56. // Implementation
  57. public:
  58.     virtual ~CMfcdemoView();
  59. #ifdef _DEBUG
  60.     virtual void AssertValid() const;
  61.     virtual void Dump(CDumpContext& dc) const;
  62. #endif
  63.  
  64. protected:
  65.  
  66. // Generated message map functions
  67. protected:
  68.     //{{AFX_MSG(CMfcdemoView)
  69.     afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam);  // user message
  70.     afx_msg void OnImageFlip();
  71.     afx_msg void OnImageReverse();
  72.     afx_msg void OnImageRotate180clockwise();
  73.     afx_msg void OnImageRotate270clockwise();
  74.     afx_msg void OnImageRotate90clockwise();
  75.     afx_msg void OnColorGrayscale();
  76.     afx_msg void OnColorHistogramequalize();
  77.     afx_msg void OnColorInvert();
  78.     afx_msg void OnColorStretchintensity();
  79.     afx_msg void OnImageEffectsPosterize();
  80.     afx_msg void OnColorBrightness();
  81.     afx_msg void OnColorContrast();
  82.     afx_msg void OnColorHistocontrast();
  83.     afx_msg void OnColorHue();
  84.     afx_msg void OnColorSaturation();
  85.     afx_msg void OnImageEffectsAddnoise();
  86.     afx_msg void OnImageEffectsAverage();
  87.     afx_msg void OnImageEffectsDespeckle();
  88.     afx_msg void OnImageEffectsMedian();
  89.     afx_msg void OnImageEffectsMosaic();
  90.     afx_msg void OnImageEffectsSharpen();
  91.     afx_msg void OnImageBinaryfiltersDilation();
  92.     afx_msg void OnImageBinaryfiltersErosion();
  93.     afx_msg void OnImageSpatialfiltersGradient();
  94.     afx_msg void OnImageSpatialfiltersLaplacian();
  95.     afx_msg void OnImageSpatialfiltersLinesegment();
  96.     afx_msg void OnImageSpatialfiltersPrewitt();
  97.     afx_msg void OnImageSpatialfiltersShiftanddifference();
  98.     afx_msg void OnImageSpatialfiltersSobel();
  99.     afx_msg void OnColorGammacorrect();
  100.     afx_msg void OnColorIntensitydetect();
  101.     afx_msg void OnImageResize();
  102.     afx_msg void OnImageRotateAnyangle();
  103.     afx_msg void OnImageShear();
  104.     afx_msg void OnColorColorresolution();
  105.     afx_msg void OnViewZoom();
  106.     afx_msg void OnViewNormal();
  107.     afx_msg void OnViewPainteffects();
  108.     afx_msg void OnViewSnapwindowtoimage();
  109.     afx_msg void OnViewFitimagetowindow();
  110.     afx_msg void OnImageEffectsEmboss();
  111.     afx_msg void OnColorHalftone();
  112.     afx_msg void OnColorFill();
  113.     afx_msg void OnEditUndo();
  114.     afx_msg void OnEditCopy();
  115.     afx_msg void OnColorSeparation();
  116.     afx_msg void OnImageEffectsEdgeenhance();
  117.     afx_msg void OnUpdateImageEffectsEdgeenhance(CCmdUI* pCmdUI);
  118.     afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
  119.     afx_msg void OnImageDeskew();
  120.     afx_msg void OnImageEffectsUnderlay();
  121.     afx_msg void OnUpdateImageDeskew(CCmdUI* pCmdUI);
  122.     afx_msg void OnUpdateImageBinaryfiltersDilation(CCmdUI* pCmdUI);
  123.     afx_msg void OnUpdateImageBinaryfiltersErosion(CCmdUI* pCmdUI);
  124.     afx_msg void OnUpdateImageEffectsDespeckle(CCmdUI* pCmdUI);
  125.     afx_msg void OnSize(UINT nType, int cx, int cy);
  126.     afx_msg void OnToolnone();
  127.     afx_msg void OnUpdateToolnone(CCmdUI* pCmdUI);
  128.     afx_msg void OnToolellipse();
  129.     afx_msg void OnUpdateToolellipse(CCmdUI* pCmdUI);
  130.     afx_msg void OnToolfreehand();
  131.     afx_msg void OnUpdateToolfreehand(CCmdUI* pCmdUI);
  132.     afx_msg void OnToolrect();
  133.     afx_msg void OnUpdateToolrect(CCmdUI* pCmdUI);
  134.     afx_msg void OnToolrndrect();
  135.     afx_msg void OnUpdateToolrndrect(CCmdUI* pCmdUI);
  136.     afx_msg void OnUpdateImageRegiontransformationsCancel(CCmdUI* pCmdUI);
  137.     afx_msg void OnImageRegiontransformationsCancel();
  138.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  139.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  140.     afx_msg void OnUpdateImageShear(CCmdUI* pCmdUI);
  141.     //}}AFX_MSG
  142.     DECLARE_MESSAGE_MAP()
  143.  
  144.    void OnMouseDownLeadctrl1(short Button, short Shift, OLE_XPOS_PIXELS X, OLE_YPOS_PIXELS Y);
  145.    void OnMouseMoveLeadctrl1(short Button, short Shift, OLE_XPOS_PIXELS X, OLE_YPOS_PIXELS Y);
  146.    void OnMouseUpLeadctrl1(short Button, short Shift, OLE_XPOS_PIXELS X, OLE_YPOS_PIXELS Y);
  147.    void OnRgnChangeLeadctrl1();
  148.  
  149.    CLeadContainer    m_LeadContainer;
  150.     CLead    m_Lead;
  151.     CLead    m_Lead3;
  152.    DECLARE_LEAD_DISPATCH_MAP(m_Lead)
  153. };
  154.  
  155.  
  156. #ifndef _DEBUG  // debug version in mfcdevw.cpp
  157. inline CMfcdemoDoc* CMfcdemoView::GetDocument()
  158.    { return (CMfcdemoDoc*)m_pDocument; }
  159. #endif
  160.