// mfcdeVw.h : interface of the CMfcdemoView class // ///////////////////////////////////////////////////////////////////////////// //{{AFX_INCLUDES() #include "lead.h" #include "lttmbctl.h" //}}AFX_INCLUDES #define REGISTRYKEY_SERVER_NAME "LEAD.MainMFCOCXDemo.Image.14" class CMfcdemoView : public CFormView { protected: // create from serialization only CMfcdemoView(); DECLARE_DYNCREATE(CMfcdemoView) public: //{{AFX_DATA(CMfcdemoView) enum { IDD = IDD_MFCDEMO_FORM }; CLead m_Lead; CLead m_Lead3; CLTTmbCtl m_LEADThumb; //}}AFX_DATA // Attributes public: CMfcdemoDoc* GetDocument(); int GenerateBitampList ( TCHAR * pszFolder, BOOL fThumbnail ); CPalette *m_pPalette; int m_nZoom; int m_nEffect; CRect m_rcDst; int m_nRegionTool; int m_nRegionType; long m_xStart, m_yStart; BOOL m_bMovingFloater; CRect m_rcFloater; //BOOL m_bStopEffect; // Operations public: CLead* GetDocLead(); CLead* GetUndoLead(); void OnChanged(); void SetZoom(int nZoom); void BeginProcessing(); void EndProcessing(int nRet); void SetRegionTool(int nNewRegionTool); void UpdateMasterDocument(); void RestoreBackground(); void SaveBackground(); void OnImageRegiontransformationsFlip(); void OnImageRegiontransformationsResize(); void OnImageRegiontransformationsReverse(); void OnImageRegiontransformationsRotate(); void OnImageRegiontransformationsRotate(long nAngle, BOOL fResize = TRUE); void OnImageRegiontransformationsShear(); void OnImageRegiontransformationsShear(long nAngle, BOOL fResize = TRUE); void StartMagGlass(); void StopMagGlass(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMfcdemoView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual void OnInitialUpdate(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); //}}AFX_VIRTUAL // Implementation public: virtual ~CMfcdemoView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CMfcdemoView) afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam); // user message afx_msg void OnImageFlip(); afx_msg void OnImageReverse(); afx_msg void OnImageRotate180clockwise(); afx_msg void OnImageRotate270clockwise(); afx_msg void OnImageRotate90clockwise(); afx_msg void OnColorGrayscale(); afx_msg void OnColorGrayscale12(); afx_msg void OnColorGrayscale16(); afx_msg void OnColorHistogramequalize(); afx_msg void OnColorInvert(); afx_msg void OnColorStretchintensity(); afx_msg void OnImageEffectsPosterize(); afx_msg void OnColorBrightness(); afx_msg void OnColorContrast(); afx_msg void OnColorHistocontrast(); afx_msg void OnColorHue(); afx_msg void OnColorSaturation(); afx_msg void OnImageEffectsAddnoise(); afx_msg void OnImageEffectsAverage(); afx_msg void OnImageEffectsDespeckle(); afx_msg void OnImageEffectsMedian(); afx_msg void OnImageEffectsMosaic(); afx_msg void OnImageEffectsSharpen(); afx_msg void OnImageBinaryfiltersDilation(); afx_msg void OnImageBinaryfiltersErosion(); afx_msg void OnImageSpatialfiltersGradient(); afx_msg void OnImageSpatialfiltersLaplacian(); afx_msg void OnImageSpatialfiltersLinesegment(); afx_msg void OnImageSpatialfiltersPrewitt(); afx_msg void OnImageSpatialfiltersShiftanddifference(); afx_msg void OnImageSpatialfiltersSobel(); afx_msg void OnColorGammacorrect(); afx_msg void OnColorIntensitydetect(); afx_msg void OnImageResize(); afx_msg void OnImageRotateAnyangle(); afx_msg void OnImageShear(); afx_msg void OnColorColorresolution(); afx_msg void OnViewZoom(); afx_msg void OnViewNormal(); afx_msg void OnViewPainteffects(); afx_msg void OnViewSnapwindowtoimage(); afx_msg void OnViewFitimagetowindow(); afx_msg void OnImageEffectsEmboss(); afx_msg void OnColorHalftone(); afx_msg void OnColorFill(); afx_msg void OnEditUndo(); afx_msg void OnEditCopy(); afx_msg void OnColorSeparation(); afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI); afx_msg void OnImageDeskew(); afx_msg void OnImageEffectsUnderlay(); afx_msg void OnUpdateImageDeskew(CCmdUI* pCmdUI); afx_msg void OnUpdateImageBinaryfiltersDilation(CCmdUI* pCmdUI); afx_msg void OnUpdateImageBinaryfiltersErosion(CCmdUI* pCmdUI); afx_msg void OnUpdateImageEffectsDespeckle(CCmdUI* pCmdUI); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnToolnone(); afx_msg void OnUpdateToolnone(CCmdUI* pCmdUI); afx_msg void OnToolellipse(); afx_msg void OnUpdateToolellipse(CCmdUI* pCmdUI); afx_msg void OnToolfreehand(); afx_msg void OnUpdateToolfreehand(CCmdUI* pCmdUI); afx_msg void OnToolrect(); afx_msg void OnUpdateToolrect(CCmdUI* pCmdUI); afx_msg void OnToolrndrect(); afx_msg void OnUpdateToolrndrect(CCmdUI* pCmdUI); afx_msg void OnMouseDownLeadctrl1(short Button, short Shift, long x, long y); afx_msg void OnMouseMoveLeadctrl1(short Button, short Shift, long x, long y); afx_msg void OnMouseUpLeadctrl1(short Button, short Shift, long x, long y); afx_msg void OnUpdateImageRegiontransformationsCancel(CCmdUI* pCmdUI); afx_msg void OnImageRegiontransformationsCancel(); afx_msg void OnUpdateImageShear(CCmdUI* pCmdUI); afx_msg void OnRgnChangeLeadctrl1(); afx_msg void OnColorWindowlevel(); afx_msg void OnUpdateColorWindowlevel(CCmdUI* pCmdUI); afx_msg void OnColorContourFilter(); afx_msg void OnColorPicturize(); afx_msg void OnImageDocumentimagingSmooth(); afx_msg void OnUpdateImageDocumentimagingSmooth(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingLineremove(); afx_msg void OnUpdateImageDocumentimagingLineremove(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingDotremove(); afx_msg void OnUpdateImageDocumentimagingDotremove(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingInvertedtext(); afx_msg void OnUpdateImageDocumentimagingInvertedtext(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingBorderremove(); afx_msg void OnUpdateImageDocumentimagingBorderremove(CCmdUI* pCmdUI); afx_msg void OnImageDocumentimagingHolepunchremove(); afx_msg void OnUpdateImageDocumentimagingHolepunchremove(CCmdUI* pCmdUI); afx_msg void OnViewPanwindow(); afx_msg void OnViewMagnifyingglass(); afx_msg void OnUpdateViewMagnifyingglass(CCmdUI* pCmdUI); afx_msg void OnUpdateViewPanwindow(CCmdUI* pCmdUI); afx_msg void OnDestroy(); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnKeyDownLeadctrl1(short FAR* KeyCode, short Shift); afx_msg void OnProgressStatusLeadctrl1(short iPercent); afx_msg void OnResizeLeadctrl1(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnUpdateViewPainteffects(CCmdUI* pCmdUI); afx_msg void OnUpdateViewNormal(CCmdUI* pCmdUI); afx_msg void OnUpdateColorHistocontrast(CCmdUI* pCmdUI); afx_msg void OnRemoveredeye(); afx_msg void OnUpdateRemoveredeye(CCmdUI* pCmdUI); afx_msg void OnAddborder(); afx_msg void OnAddframe(); afx_msg void OnCanvassize(); afx_msg void OnHistogram(); afx_msg void OnMotionblur(); afx_msg void OnZoomblur(); afx_msg void OnRadialblur(); afx_msg void OnGaussianblur(); afx_msg void OnAntialias(); afx_msg void OnMaxfilter(); afx_msg void OnMinfilter(); afx_msg void OnUnsharpmask(); afx_msg void OnMultiply(); afx_msg void OnOilify(); afx_msg void OnPaletteeditor(); afx_msg void OnAddbitmaps(); afx_msg void OnBalancecolors(); afx_msg void OnBending(); afx_msg void OnColoredgray(); afx_msg void OnCountcolors(); afx_msg void OnCylindrical(); afx_msg void OnStitch(); afx_msg void OnPixelate(); afx_msg void OnPngwebtuner(); afx_msg void OnPolar(); afx_msg void OnPreview(); afx_msg void OnPrintstitchedimages(); afx_msg void OnPunch(); afx_msg void OnRadialwave(); afx_msg void OnRemaphue(); afx_msg void OnRemapintensity(); afx_msg void OnRipple(); afx_msg void OnSpherize(); afx_msg void OnSwirl(); afx_msg void OnWave(); afx_msg void OnWaveshear(); afx_msg void OnWind(); afx_msg void OnZoomwave(); afx_msg void OnFreehandwave(); afx_msg void OnImpression(); afx_msg void OnEdgedetect(); afx_msg void OnColorSolarize(); afx_msg void OnGrayscale(); afx_msg void OnLocalequalize(); afx_msg void OnConvert(); afx_msg void OnImagemapper(); afx_msg void OnJpegwebtuner(); afx_msg void OnGifwebtuner(); afx_msg void OnFillblack(); afx_msg void OnFillblue(); afx_msg void OnFillcyan(); afx_msg void OnFillgreen(); afx_msg void OnFillmagenta(); afx_msg void OnFillred(); afx_msg void OnFillwhite(); afx_msg void OnFillyellow(); afx_msg void OnColorsepRgb(); afx_msg void OnColorsepAlpha(); afx_msg void OnColorsepCmy(); afx_msg void OnColorsepCmyk(); afx_msg void OnColorsepHls(); afx_msg void OnColorsepHsv(); afx_msg void OnPanWinLeadctrl1(long hPanWin, short iFlag); afx_msg void OnUpdateBalancecolors(CCmdUI* pCmdUI); afx_msg void OnThumbnailEventLeadthumbctrl1(long Bitmap, LPCTSTR pszFilename, short nStatusCode, short nPercent); 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 OnUpdateColorGammacorrect(CCmdUI* pCmdUI); afx_msg void OnUpdateColorGrayscale(CCmdUI* pCmdUI); afx_msg void OnUpdateColorGrayscale12(CCmdUI* pCmdUI); afx_msg void OnUpdateColorGrayscale16(CCmdUI* pCmdUI); afx_msg void OnUpdateColorHalftone(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 OnUpdateColorSolarize(CCmdUI* pCmdUI); afx_msg void OnUpdateColorStretchintensity(CCmdUI* pCmdUI); afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI); afx_msg void OnUpdateFileAcquire(CCmdUI* pCmdUI); afx_msg void OnUpdateFileBrowse(CCmdUI* pCmdUI); afx_msg void OnUpdateFileCapturescreen(CCmdUI* pCmdUI); afx_msg void OnUpdateFileColormerge(CCmdUI* pCmdUI); afx_msg void OnUpdateFileIsisacquire(CCmdUI* pCmdUI); afx_msg void OnUpdateFileIsisacquiremulti(CCmdUI* pCmdUI); afx_msg void OnUpdateFileIsisselectsource(CCmdUI* pCmdUI); afx_msg void OnUpdateImageEffectsAddnoise(CCmdUI* pCmdUI); afx_msg void OnUpdateImageEffectsAverage(CCmdUI* pCmdUI); afx_msg void OnUpdateImageEffectsEmboss(CCmdUI* pCmdUI); afx_msg void OnUpdateImageEffectsMedian(CCmdUI* pCmdUI); afx_msg void OnUpdateImageEffectsMosaic(CCmdUI* pCmdUI); afx_msg void OnUpdateImageEffectsPosterize(CCmdUI* pCmdUI); afx_msg void OnUpdateImageEffectsSharpen(CCmdUI* pCmdUI); afx_msg void OnUpdateImageEffectsUnderlay(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 OnUpdateImageSpatialfiltersGradient(CCmdUI* pCmdUI); afx_msg void OnUpdateImageSpatialfiltersLaplacian(CCmdUI* pCmdUI); afx_msg void OnUpdateImageSpatialfiltersLinesegment(CCmdUI* pCmdUI); afx_msg void OnUpdateImageSpatialfiltersPrewitt(CCmdUI* pCmdUI); afx_msg void OnUpdateImageSpatialfiltersShiftanddifference(CCmdUI* pCmdUI); afx_msg void OnUpdateImageSpatialfiltersSobel(CCmdUI* pCmdUI); afx_msg void OnUpdateNextPane(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesBitonalscalingFavorblack(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesBitonalscalingNormal(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesBitonalscalingScaletogray(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesDitheringErrordiffusion(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesDitheringOrdered(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesPaintscalingBicubic(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesPaintscalingNormal(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesPaintscalingResample(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesPaletteAuto(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesPaletteFixed(CCmdUI* pCmdUI); afx_msg void OnUpdatePrevPane(CCmdUI* pCmdUI); afx_msg void OnUpdateAddbitmaps(CCmdUI* pCmdUI); afx_msg void OnUpdateAddborder(CCmdUI* pCmdUI); afx_msg void OnUpdateAddframe(CCmdUI* pCmdUI); afx_msg void OnUpdateAntialias(CCmdUI* pCmdUI); afx_msg void OnUpdateBending(CCmdUI* pCmdUI); afx_msg void OnUpdateCanvassize(CCmdUI* pCmdUI); afx_msg void OnUpdateColoredgray(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepAlpha(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepCmy(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepCmyk(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepHls(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepHsv(CCmdUI* pCmdUI); afx_msg void OnUpdateColorsepRgb(CCmdUI* pCmdUI); afx_msg void OnUpdateConvert(CCmdUI* pCmdUI); afx_msg void OnUpdateCountcolors(CCmdUI* pCmdUI); afx_msg void OnUpdateCylindrical(CCmdUI* pCmdUI); afx_msg void OnUpdateEdgedetect(CCmdUI* pCmdUI); afx_msg void OnUpdateFileformatassociations(CCmdUI* pCmdUI); afx_msg void OnUpdateFillblack(CCmdUI* pCmdUI); afx_msg void OnUpdateFillblue(CCmdUI* pCmdUI); afx_msg void OnUpdateFillcyan(CCmdUI* pCmdUI); afx_msg void OnUpdateFillgreen(CCmdUI* pCmdUI); afx_msg void OnUpdateFillmagenta(CCmdUI* pCmdUI); afx_msg void OnUpdateFillred(CCmdUI* pCmdUI); afx_msg void OnUpdateFillwhite(CCmdUI* pCmdUI); afx_msg void OnUpdateFillyellow(CCmdUI* pCmdUI); afx_msg void OnUpdateFreehandwave(CCmdUI* pCmdUI); afx_msg void OnUpdateGaussianblur(CCmdUI* pCmdUI); afx_msg void OnUpdateGifwebtuner(CCmdUI* pCmdUI); afx_msg void OnUpdateGrayscale(CCmdUI* pCmdUI); afx_msg void OnUpdateHistogram(CCmdUI* pCmdUI); afx_msg void OnUpdateImagemapper(CCmdUI* pCmdUI); afx_msg void OnUpdateImpression(CCmdUI* pCmdUI); afx_msg void OnUpdateJpegwebtuner(CCmdUI* pCmdUI); afx_msg void OnUpdateLocalequalize(CCmdUI* pCmdUI); afx_msg void OnUpdateMaxfilter(CCmdUI* pCmdUI); afx_msg void OnUpdateMinfilter(CCmdUI* pCmdUI); afx_msg void OnUpdateMotionblur(CCmdUI* pCmdUI); afx_msg void OnUpdateMultiply(CCmdUI* pCmdUI); afx_msg void OnUpdateOilify(CCmdUI* pCmdUI); afx_msg void OnUpdatePaletteeditor(CCmdUI* pCmdUI); afx_msg void OnUpdatePixelate(CCmdUI* pCmdUI); afx_msg void OnUpdatePngwebtuner(CCmdUI* pCmdUI); afx_msg void OnUpdatePolar(CCmdUI* pCmdUI); afx_msg void OnUpdatePreview(CCmdUI* pCmdUI); afx_msg void OnUpdatePunch(CCmdUI* pCmdUI); afx_msg void OnUpdateRadialblur(CCmdUI* pCmdUI); afx_msg void OnUpdateRadialwave(CCmdUI* pCmdUI); afx_msg void OnUpdateRemaphue(CCmdUI* pCmdUI); afx_msg void OnUpdateRemapintensity(CCmdUI* pCmdUI); afx_msg void OnUpdateRipple(CCmdUI* pCmdUI); afx_msg void OnUpdateSpherize(CCmdUI* pCmdUI); afx_msg void OnUpdateStitch(CCmdUI* pCmdUI); afx_msg void OnUpdateSwirl(CCmdUI* pCmdUI); afx_msg void OnUpdateUnsharpmask(CCmdUI* pCmdUI); afx_msg void OnUpdateWave(CCmdUI* pCmdUI); afx_msg void OnUpdateWaveshear(CCmdUI* pCmdUI); afx_msg void OnUpdateWind(CCmdUI* pCmdUI); afx_msg void OnUpdateZoomblur(CCmdUI* pCmdUI); afx_msg void OnUpdateZoomwave(CCmdUI* pCmdUI); afx_msg void OnUpdatePrintstitchedimages(CCmdUI* pCmdUI); afx_msg void OnUpdateFileSelectsource(CCmdUI* pCmdUI); DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in mfcdeVw.cpp inline CMfcdemoDoc* CMfcdemoView::GetDocument() { return (CMfcdemoDoc*)m_pDocument; } #endif /////////////////////////////////////////////////////////////////////////////