home *** CD-ROM | disk | FTP | other *** search
- // mfcdemo.h : main header file for the MFCDEMO application
- // Copyright (C) 1990, 1998 LEAD Technologies, Inc.
- // All rights reserved.
-
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
-
- #include "resource.h" // main symbols
-
- #define WM_DOREALIZE (WM_USER + 0)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CMfcdemoApp:
- // See mfcdemo.cpp for the implementation of this class
- //
-
- class CMfcdemoApp : public CWinApp
- {
- public:
- CMfcdemoApp();
- void OpenDocument(int nMode);
- void UpdateAllDocumentViews();
- int DisplayLEADError(int nCode);
- CPtrArray *EnumAllDocuments( CDocument *pDocToExclude = NULL );
- CLead* GetMainLead();
-
- int m_nOpenMode;
- int m_nBitonalScaling;
- BOOL m_fOrderedDither;
- BOOL m_fAutoPalette;
- OLE_HANDLE m_Bitmap;
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMfcdemoApp)
- public:
- virtual BOOL InitInstance();
- //}}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 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 OnFileColormerge();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- enum {
- OPENMODE_FILE,
- OPENMODE_CAPTURE,
- OPENMODE_PASTE,
- OPENMODE_BITMAP,
- OPENMODE_TWAIN,
- OPENMODE_COLORMERGE,
- };
-
- /////////////////////////////////////////////////////////////////////////////