// demoView.h : interface of the CDemoView class // ///////////////////////////////////////////////////////////////////////////// //{{AFX_INCLUDES() #include "leadrasterview.h" //}}AFX_INCLUDES #if !defined(AFX_DEMOVIEW_H__0D0B654F_6C8A_11D4_8148_00105A07EA1C__INCLUDED_) #define AFX_DEMOVIEW_H__0D0B654F_6C8A_11D4_8148_00105A07EA1C__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #include "leadrasterview.h" class CDemoView : public CFormView { protected: // create from serialization only CDemoView(); DECLARE_DYNCREATE(CDemoView) public: //{{AFX_DATA(CDemoView) enum { IDD = IDD_DEMO_FORM }; CLEADRasterView m_RasterView; BOOL m_bQuit; //}}AFX_DATA // Attributes // Attributes public: CPalette *m_pPalette; int m_nZoom; int m_nEffect; int m_nRegionTool; int m_nRegionType; float m_xStart, m_yStart; BOOL m_bMovingFloater; CRect m_rcFloater; CDemoDoc* GetDocument(); ILEADRasterThumbnail *m_pRasterThumbnail; ILEADRaster *m_pGrayBitmap; // Operations public: LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam); void EnableSysMenu(BOOL bEnable); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDemoView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); virtual void OnDraw(CDC* pDC); virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}AFX_VIRTUAL // Implementation public: int GetZoom(); void OnImageRegiontransformationsRotate(); int GenerateBitampList ( TCHAR * pszFolder, BOOL fThumbnail ); int m_bResize; short m_nAngle; void OnImageRegiontransformationsShear(); void SaveBackground(); void OnImageRegiontransformations(unsigned int uOperation); void UpdateMasterDocument(); void SetRegionTool(int nRegionTool); void OnChanged(); ILEADRaster * GetUndoRaster(); void EndProcessing(int nRet); void BeginProcessing(); void RestoreBackground(); void StopMagGlass(); void StartMagGlass(); void SetZoom(int nZoom); virtual ~CDemoView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CDemoView) afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnViewFitimagetowindow(); afx_msg void OnViewMagnifyingglass(); afx_msg void OnUpdateViewMagnifyingglass(CCmdUI* pCmdUI); afx_msg void OnViewNormal(); afx_msg void OnViewPainteffects(); afx_msg void OnViewPanwindow(); afx_msg void OnUpdateViewPanwindow(CCmdUI* pCmdUI); afx_msg void OnViewSnapwindowtoimage(); afx_msg void OnViewZoom(); afx_msg void OnEditCancelregion(); afx_msg void OnUpdateEditCancelregion(CCmdUI* pCmdUI); afx_msg void OnPanWinLeadrasterview1(long hPanWin, short iFlag); afx_msg void OnColorSeparationCMYK(); afx_msg void OnColorSeparationCMY(); afx_msg void OnColorSeparationRGB(); afx_msg void OnColorSeparationHSV(); afx_msg void OnColorSeparationHLS(); afx_msg void OnColorSeparationALPHA(); afx_msg void OnToolrect(); afx_msg void OnUpdateToolrect(CCmdUI* pCmdUI); afx_msg void OnMouseDownLeadrasterview1(short Button, short Shift, float x, float y); afx_msg void OnMouseMoveLeadrasterview1(short Button, short Shift, float x, float y); afx_msg void OnMouseUpLeadrasterview1(short Button, short Shift, float x, float y); afx_msg void OnToolrndrect(); afx_msg void OnUpdateToolrndrect(CCmdUI* pCmdUI); afx_msg void OnToolfreehand(); afx_msg void OnUpdateToolfreehand(CCmdUI* pCmdUI); afx_msg void OnToolellipse(); afx_msg void OnUpdateToolellipse(CCmdUI* pCmdUI); afx_msg void OnToolnone(); afx_msg void OnUpdateToolnone(CCmdUI* pCmdUI); afx_msg void OnEditUndo(); afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI); afx_msg void OnEditCopy(); afx_msg void OnImageFlip(); afx_msg void OnImageReverse(); afx_msg void OnImageRotate180clockwise(); afx_msg void OnImageRotate270clockwise(); afx_msg void OnImageRotate90clockwise(); afx_msg void OnImageRotateAnyangle(); afx_msg void OnRgnChangeLeadrasterview1(); afx_msg void OnImageShear(); afx_msg void OnImageDeskew(); afx_msg void OnUpdateImageDeskew(CCmdUI* pCmdUI); afx_msg void OnImageResize(); afx_msg void OnColorGrayscale8(); afx_msg void OnColorGrayscale16(); afx_msg void OnColorGrayscale12(); afx_msg void OnColorColorresolution(); afx_msg void OnColorWindowlevel(); afx_msg void OnUpdateColorWindowlevel(CCmdUI* pCmdUI); afx_msg void OnColorBrightness(); afx_msg void OnColorContourfilter(); afx_msg void OnColorContrast(); afx_msg void OnColorHistocontrast(); afx_msg void OnColorHistogramequalize(); afx_msg void OnColorHue(); afx_msg void OnColorIntensitydetect(); afx_msg void OnColorInvert(); afx_msg void OnColorSaturation(); afx_msg void OnColorStretchintensity(); afx_msg void OnColorPicturize(); afx_msg void OnImageDocumentimagingBorderremove(); afx_msg void OnUpdateImageDocumentimagingBorderremove(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingDotremove(); afx_msg void OnUpdateImageDocumentimagingDotremove(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingHolepunchremove(); afx_msg void OnUpdateImageDocumentimagingHolepunchremove(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingInvertedtext(); afx_msg void OnUpdateImageDocumentimagingInvertedtext(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingLineremove(); afx_msg void OnUpdateImageDocumentimagingLineremove(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingSmooth(); afx_msg void OnUpdateImageDocumentimagingSmooth(CCmdUI* pCmdUI); afx_msg void OnUpdateViewNormal(CCmdUI* pCmdUI); afx_msg void OnUpdateViewFitimagetowindow(CCmdUI* pCmdUI); afx_msg void OnViewStretchimagetowindow(); afx_msg void OnUpdateViewStretchimagetowindow(CCmdUI* pCmdUI); afx_msg void OnDestroy(); afx_msg void OnUpdateViewZoom(CCmdUI* pCmdUI); afx_msg void OnKeyUpLeadrasterview1(short KeyCode, short Shift); afx_msg void OnProgressStatusLeadrasterview1(short iPercent); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnUpdateColorBrightness(CCmdUI* pCmdUI); afx_msg void OnUpdateColorColorresolution(CCmdUI* pCmdUI); afx_msg void OnUpdateColorContourfilter(CCmdUI* pCmdUI); afx_msg void OnUpdateColorContrast(CCmdUI* pCmdUI); afx_msg void OnUpdateColorFill(CCmdUI* pCmdUI); afx_msg void OnUpdateColorGrayscale12(CCmdUI* pCmdUI); afx_msg void OnUpdateColorGrayscale16(CCmdUI* pCmdUI); afx_msg void OnUpdateColorGrayscale8(CCmdUI* pCmdUI); afx_msg void OnUpdateColorHalftone(CCmdUI* pCmdUI); afx_msg void OnUpdateColorHistocontrast(CCmdUI* pCmdUI); afx_msg void OnUpdateColorHistogramequalize(CCmdUI* pCmdUI); afx_msg void OnUpdateColorHue(CCmdUI* pCmdUI); afx_msg void OnUpdateColorIntensitydetect(CCmdUI* pCmdUI); afx_msg void OnUpdateColorInvert(CCmdUI* pCmdUI); afx_msg void OnUpdateColorPicturize(CCmdUI* pCmdUI); afx_msg void OnUpdateColorSaturation(CCmdUI* pCmdUI); afx_msg void OnUpdateColorSeparation(CCmdUI* pCmdUI); afx_msg void OnUpdateColorStretchintensity(CCmdUI* pCmdUI); afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI); afx_msg void OnUpdateFileBrowse(CCmdUI* pCmdUI); afx_msg void OnUpdateFileClose(CCmdUI* pCmdUI); afx_msg void OnUpdateFileColormerge(CCmdUI* pCmdUI); afx_msg void OnUpdateFileIsisacquire(CCmdUI* pCmdUI); afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI); afx_msg void OnUpdateFileIsisacquiremulti(CCmdUI* pCmdUI); afx_msg void OnUpdateFileIsisselectsource(CCmdUI* pCmdUI); afx_msg void OnUpdateFileTwainacquire(CCmdUI* pCmdUI); afx_msg void OnUpdateFileTwainselect(CCmdUI* pCmdUI); afx_msg void OnUpdateImageFlip(CCmdUI* pCmdUI); afx_msg void OnUpdateImageResize(CCmdUI* pCmdUI); afx_msg void OnUpdateImageReverse(CCmdUI* pCmdUI); afx_msg void OnUpdateImageRotate180clockwise(CCmdUI* pCmdUI); afx_msg void OnUpdateImageRotate270clockwise(CCmdUI* pCmdUI); afx_msg void OnUpdateImageRotate90clockwise(CCmdUI* pCmdUI); afx_msg void OnUpdateImageRotateAnyangle(CCmdUI* pCmdUI); afx_msg void OnUpdateImageShear(CCmdUI* pCmdUI); afx_msg void OnUpdateViewPainteffects(CCmdUI* pCmdUI); afx_msg void OnUpdateViewSnapwindowtoimage(CCmdUI* pCmdUI); afx_msg void OnFastflip(); afx_msg void OnAddborder(); afx_msg void OnMotionblur(); afx_msg void OnRadialblur(); afx_msg void OnZoomblur(); afx_msg void OnGaussianblur(); afx_msg void OnAntialias(); afx_msg void OnAverage(); afx_msg void OnMedian(); afx_msg void OnAddnoise(); afx_msg void OnMaxfilter(); afx_msg void OnMinfilter(); afx_msg void OnUnsharpmask(); afx_msg void OnSharpen(); afx_msg void OnMultiply(); afx_msg void OnAddbitmaps(); afx_msg void OnStitch(); afx_msg void OnFreehandwave(); afx_msg void OnWind(); afx_msg void OnPolar(); afx_msg void OnZoomwave(); afx_msg void OnRadialwave(); afx_msg void OnSwirl(); afx_msg void OnWave(); afx_msg void OnWaveshear(); afx_msg void OnEmboss(); afx_msg void OnPunch(); afx_msg void OnRipple(); afx_msg void OnBending(); afx_msg void OnCylindrical(); afx_msg void OnSpherize(); afx_msg void OnImpression(); afx_msg void OnOilify(); afx_msg void OnUnderlay(); afx_msg void OnPixelate(); afx_msg void OnMosaic(); afx_msg void OnEdgedetect(); afx_msg void OnErosion(); afx_msg void OnDilation(); afx_msg void OnGradient(); afx_msg void OnLaplace(); afx_msg void OnSobel(); afx_msg void OnPrewitt(); afx_msg void OnShiftdiff(); afx_msg void OnLineseg(); afx_msg void OnCanvassize(); afx_msg void OnHistogram(); afx_msg void OnBalancecolors(); afx_msg void OnGamma(); afx_msg void OnSaturation(); afx_msg void OnHue(); afx_msg void OnHalftone(); afx_msg void OnGrayscale(); afx_msg void OnColoredgray(); afx_msg void OnRemapintensity(); afx_msg void OnRemaphue(); afx_msg void OnHistoequalize(); afx_msg void OnStretchintensity(); afx_msg void OnLocalequalize(); afx_msg void OnHistocontrast(); afx_msg void OnPaletteeditor(); afx_msg void OnCountcolors(); afx_msg void OnInvert(); afx_msg void OnDetect(); afx_msg void OnSolarize(); afx_msg void OnPosterize(); afx_msg void OnPreview(); afx_msg void OnJPEGWebTuner(); afx_msg void OnHtmlMapper(); afx_msg void OnGIFWebTuner(); afx_msg void OnPngWebTuner(); afx_msg void OnFillblack(); afx_msg void OnFillwhite(); afx_msg void OnFillred(); afx_msg void OnFillgreen(); afx_msg void OnFillblue(); afx_msg void OnFillcyan(); afx_msg void OnFillmagenta(); afx_msg void OnFillyellow(); afx_msg void OnFileFormatAssociations(); afx_msg void OnPrintStitchedImages(); afx_msg void OnAddframe(); afx_msg void OnUpdateAddborder(CCmdUI* pCmdUI); afx_msg void OnUpdateAddframe(CCmdUI* pCmdUI); afx_msg void OnUpdateCanvassize(CCmdUI* pCmdUI); afx_msg void OnUpdateHistogram(CCmdUI* pCmdUI); afx_msg void OnUpdateMotionblur(CCmdUI* pCmdUI); afx_msg void OnUpdateRadialblur(CCmdUI* pCmdUI); afx_msg void OnUpdateZoomblur(CCmdUI* pCmdUI); afx_msg void OnUpdateGaussianblur(CCmdUI* pCmdUI); afx_msg void OnUpdateAntialias(CCmdUI* pCmdUI); afx_msg void OnUpdateAverage(CCmdUI* pCmdUI); afx_msg void OnUpdateMedian(CCmdUI* pCmdUI); afx_msg void OnUpdateAddnoise(CCmdUI* pCmdUI); afx_msg void OnUpdateMaxfilter(CCmdUI* pCmdUI); afx_msg void OnUpdateMinfilter(CCmdUI* pCmdUI); afx_msg void OnUpdateUnsharpmask(CCmdUI* pCmdUI); afx_msg void OnUpdateSharpen(CCmdUI* pCmdUI); afx_msg void OnUpdateMultiply(CCmdUI* pCmdUI); afx_msg void OnUpdateAddbitmaps(CCmdUI* pCmdUI); afx_msg void OnUpdateStitch(CCmdUI* pCmdUI); afx_msg void OnUpdateFreehandwave(CCmdUI* pCmdUI); afx_msg void OnUpdateWind(CCmdUI* pCmdUI); afx_msg void OnUpdatePolar(CCmdUI* pCmdUI); afx_msg void OnUpdateZoomwave(CCmdUI* pCmdUI); afx_msg void OnUpdateRadialwave(CCmdUI* pCmdUI); afx_msg void OnUpdateSwirl(CCmdUI* pCmdUI); afx_msg void OnUpdateWave(CCmdUI* pCmdUI); afx_msg void OnUpdateWaveshear(CCmdUI* pCmdUI); afx_msg void OnUpdateEmboss(CCmdUI* pCmdUI); afx_msg void OnUpdatePunch(CCmdUI* pCmdUI); afx_msg void OnUpdateRipple(CCmdUI* pCmdUI); afx_msg void OnUpdateBending(CCmdUI* pCmdUI); afx_msg void OnUpdateCylindrical(CCmdUI* pCmdUI); afx_msg void OnUpdateSpherize(CCmdUI* pCmdUI); afx_msg void OnUpdateImpression(CCmdUI* pCmdUI); afx_msg void OnUpdateOilify(CCmdUI* pCmdUI); afx_msg void OnUpdateUnderlay(CCmdUI* pCmdUI); afx_msg void OnUpdatePixelate(CCmdUI* pCmdUI); afx_msg void OnUpdateMosaic(CCmdUI* pCmdUI); afx_msg void OnUpdateEdgedetect(CCmdUI* pCmdUI); afx_msg void OnUpdateErosion(CCmdUI* pCmdUI); afx_msg void OnUpdateDilation(CCmdUI* pCmdUI); afx_msg void OnUpdateGradient(CCmdUI* pCmdUI); afx_msg void OnUpdateLaplace(CCmdUI* pCmdUI); afx_msg void OnUpdateSobel(CCmdUI* pCmdUI); afx_msg void OnUpdatePrewitt(CCmdUI* pCmdUI); afx_msg void OnUpdateShiftdiff(CCmdUI* pCmdUI); afx_msg void OnUpdateLineseg(CCmdUI* pCmdUI); afx_msg void OnUpdateDetect(CCmdUI* pCmdUI); afx_msg void OnUpdateSolarize(CCmdUI* pCmdUI); afx_msg void OnUpdatePosterize(CCmdUI* pCmdUI); afx_msg void OnUpdateBrightness(CCmdUI* pCmdUI); afx_msg void OnUpdateContrast(CCmdUI* pCmdUI); afx_msg void OnUpdateHue(CCmdUI* pCmdUI); afx_msg void OnUpdateSaturation(CCmdUI* pCmdUI); afx_msg void OnUpdateGamma(CCmdUI* pCmdUI); afx_msg void OnUpdateBalancecolors(CCmdUI* pCmdUI); afx_msg void OnUpdateHalftone(CCmdUI* pCmdUI); afx_msg void OnUpdateGrayscale(CCmdUI* pCmdUI); afx_msg void OnUpdateColoredgray(CCmdUI* pCmdUI); afx_msg void OnUpdateRemapintensity(CCmdUI* pCmdUI); afx_msg void OnUpdateRemaphue(CCmdUI* pCmdUI); afx_msg void OnUpdateHistoequalize(CCmdUI* pCmdUI); afx_msg void OnUpdateStretchintensity(CCmdUI* pCmdUI); afx_msg void OnUpdateLocalequalize(CCmdUI* pCmdUI); afx_msg void OnUpdateHistocontrast(CCmdUI* pCmdUI); afx_msg void OnUpdateFillblack(CCmdUI* pCmdUI); afx_msg void OnUpdateFillwhite(CCmdUI* pCmdUI); afx_msg void OnUpdateFillred(CCmdUI* pCmdUI); afx_msg void OnUpdateFillgreen(CCmdUI* pCmdUI); afx_msg void OnUpdateFillblue(CCmdUI* pCmdUI); afx_msg void OnUpdateFillcyan(CCmdUI* pCmdUI); afx_msg void OnUpdateFillmagenta(CCmdUI* pCmdUI); afx_msg void OnUpdateFillyellow(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepRgb(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepCmyk(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepHsv(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepHls(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepCmy(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepAlpha(CCmdUI* pCmdUI); afx_msg void OnUpdateCountcolors(CCmdUI* pCmdUI); afx_msg void OnUpdatePaletteeditor(CCmdUI* pCmdUI); afx_msg void OnUpdateInvert(CCmdUI* pCmdUI); afx_msg void OnUpdateJpegwebtuner(CCmdUI* pCmdUI); afx_msg void OnUpdatePngwebtuner(CCmdUI* pCmdUI); afx_msg void OnUpdateGifwebtuner(CCmdUI* pCmdUI); afx_msg void OnUpdateHtmlmapper(CCmdUI* pCmdUI); afx_msg void OnUpdateFileformatassociations(CCmdUI* pCmdUI); afx_msg void OnUpdatePrintstitchedimages(CCmdUI* pCmdUI); afx_msg void OnUpdatePreview(CCmdUI* pCmdUI); afx_msg void OnRemoveRedEye(); afx_msg void OnImageSlice(); DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in demoView.cpp inline CDemoDoc* CDemoView::GetDocument() { return (CDemoDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_DEMOVIEW_H__0D0B654F_6C8A_11D4_8148_00105A07EA1C__INCLUDED_)