// mfcdemo.h : main header file for the MFCDEMO application // #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resdemo.h" // main symbols #include "RasterTwainSink.h" #define WM_DOREALIZE (WM_USER + 0) ///////////////////////////////////////////////////////////////////////////// // CMfcdemoApp: // See mfcdemo.cpp for the implementation of this class // class CMfcdemoApp : public CWinApp { public: BOOL m_bEnableTwain; CRasterTwainSink *m_pRasterTwainSink; DWORD m_dwCookie; ILEADRasterTwain_D *m_pRasterTwain; CMfcdemoApp(); void OpenDocument(int nMode); void UpdateAllDocumentViews(); int DisplayLEADError(int nCode); CPtrArray *EnumAllDocuments( CDocument *pDoc = NULL ); CLead* GetMainLead(); CLeadIsis* GetMainIsis(); ILEADRasterDlgFile_D * m_pRasterFileDlg; ILEADRasterDlgImg_D * m_pRasterImgDlg; ILEADRasterDlgClr_D * m_pRasterClrDlg; ILEADRasterDlgKrn_D * m_pRasterKrnDlg; ILEADRasterDlgImgEfx_D* m_pRasterImgEfxDlg; ILEADRasterDlgImgDoc_D* m_pRasterImgDocDlg; ILEADRasterDlgWeb_D * m_pRasterWebDlg; int m_nBitmapsCount; int m_DlgType; DWORD m_dwBrowseDlgCookie; BOOL m_bDICOMLoadMsg; BOOL m_bDICOMSaveMsg; UINT m_uPicturizeFlags; int m_nOpenMode; int m_nBitonalScaling; int m_nPaintScaling; BOOL m_fOrderedDither; BOOL m_fAutoPalette; int m_nEffectsCount; OLE_HANDLE m_Bitmap; CString UnitToString(long iVal, BOOL bInches); CString CMfcdemoApp::IntToString(UINT iVal); BOOL StringToUnit(long *piVal, char *szVal, BOOL bInches); long InchesToPixels(long iInches, long iRes); long PixelsToInches(long iPixels, long iRes); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMfcdemoApp) public: virtual BOOL InitInstance(); virtual int ExitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CMfcdemoApp) afx_msg void OnAppAbout(); afx_msg void OnFileCapturescreen(); afx_msg void OnEditPaste(); afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI); afx_msg void OnFileAcquire(); afx_msg void OnFileSelectsource(); afx_msg void OnFileIsisSelectSource(); afx_msg void OnPreferencesDitheringErrordiffusion(); afx_msg void OnPreferencesDitheringOrdered(); afx_msg void OnPreferencesPaletteAuto(); afx_msg void OnPreferencesPaletteFixed(); afx_msg void OnPreferencesBitonalscalingFavorblack(); afx_msg void OnPreferencesBitonalscalingNormal(); afx_msg void OnPreferencesBitonalscalingScaletogray(); afx_msg void OnUpdatePreferencesDitheringErrordiffusion(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesDitheringOrdered(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesPaletteAuto(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesPaletteFixed(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesBitonalscalingNormal(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesBitonalscalingScaletogray(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesBitonalscalingFavorblack(CCmdUI* pCmdUI); afx_msg void OnPreferencesPaintscalingResample(); afx_msg void OnPreferencesPaintscalingNormal(); afx_msg void OnPreferencesPaintscalingBicubic(); afx_msg void OnUpdatePreferencesPaintscalingNormal(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesPaintscalingBicubic(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesPaintscalingResample(CCmdUI* pCmdUI); afx_msg void OnFileColormerge(); afx_msg void OnFileOpen(); afx_msg void OnConvert(); afx_msg void OnFileformatassociations(); #ifndef _ALPHA_ afx_msg void OnUpdateFileTwainselect(CCmdUI* pCmdUI); afx_msg void OnUpdateFileTwainacquire(CCmdUI* pCmdUI); afx_msg void OnFileIsisacquire(); afx_msg void OnFileIsisacquiremulti(); afx_msg void OnUpdateFileIsisacquire(CCmdUI* pCmdUI); afx_msg void OnUpdateFileIsisacquiremulti(CCmdUI* pCmdUI); afx_msg void OnUpdateFileIsisselectsource(CCmdUI* pCmdUI); #endif //}}AFX_MSG DECLARE_MESSAGE_MAP() }; enum { OPENMODE_FILE, OPENMODE_CAPTURE, OPENMODE_PASTE, OPENMODE_BITMAP, OPENMODE_TWAIN, OPENMODE_COLORMERGE, OPENMODE_ISIS, }; /////////////////////////////////////////////////////////////////////////////