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

  1. // mfcdemo.h : main header file for the MFCDEMO application
  2. // Copyright (C) 1990, 1998 LEAD Technologies, Inc.
  3. // All rights reserved.
  4.  
  5. #ifndef __AFXWIN_H__
  6.     #error include 'stdafx.h' before including this file for PCH
  7. #endif
  8.  
  9. #include "resource.h"       // main symbols
  10.  
  11. #define WM_DOREALIZE   (WM_USER + 0)
  12.  
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CMfcdemoApp:
  16. // See mfcdemo.cpp for the implementation of this class
  17. //
  18.  
  19. class CMfcdemoApp : public CWinApp
  20. {
  21. public:
  22.       CMfcdemoApp();
  23.    void OpenDocument(int nMode);
  24.    void UpdateAllDocumentViews();
  25.    int DisplayLEADError(int nCode);
  26.    CPtrArray *EnumAllDocuments( CDocument *pDocToExclude = NULL );
  27.    CLead* GetMainLead();
  28.  
  29.    int m_nOpenMode;
  30.    int m_nBitonalScaling;
  31.    BOOL m_fOrderedDither;
  32.    BOOL m_fAutoPalette;
  33.    OLE_HANDLE m_Bitmap;
  34.  
  35. // Overrides
  36.     // ClassWizard generated virtual function overrides
  37.     //{{AFX_VIRTUAL(CMfcdemoApp)
  38.     public:
  39.     virtual BOOL InitInstance();
  40.     //}}AFX_VIRTUAL
  41.  
  42. // Implementation
  43.  
  44.     //{{AFX_MSG(CMfcdemoApp)
  45.     afx_msg void OnAppAbout();
  46.     afx_msg void OnFileCapturescreen();
  47.     afx_msg void OnEditPaste();
  48.     afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
  49.     afx_msg void OnFileAcquire();
  50.     afx_msg void OnFileSelectsource();
  51.     afx_msg void OnPreferencesDitheringErrordiffusion();
  52.     afx_msg void OnPreferencesDitheringOrdered();
  53.     afx_msg void OnPreferencesPaletteAuto();
  54.     afx_msg void OnPreferencesPaletteFixed();
  55.     afx_msg void OnPreferencesBitonalscalingFavorblack();
  56.     afx_msg void OnPreferencesBitonalscalingNormal();
  57.     afx_msg void OnPreferencesBitonalscalingScaletogray();
  58.     afx_msg void OnUpdatePreferencesDitheringErrordiffusion(CCmdUI* pCmdUI);
  59.     afx_msg void OnUpdatePreferencesDitheringOrdered(CCmdUI* pCmdUI);
  60.     afx_msg void OnUpdatePreferencesPaletteAuto(CCmdUI* pCmdUI);
  61.     afx_msg void OnUpdatePreferencesPaletteFixed(CCmdUI* pCmdUI);
  62.     afx_msg void OnUpdatePreferencesBitonalscalingNormal(CCmdUI* pCmdUI);
  63.     afx_msg void OnUpdatePreferencesBitonalscalingScaletogray(CCmdUI* pCmdUI);
  64.     afx_msg void OnUpdatePreferencesBitonalscalingFavorblack(CCmdUI* pCmdUI);
  65.     afx_msg void OnFileColormerge();
  66.     //}}AFX_MSG
  67.     DECLARE_MESSAGE_MAP()
  68. };
  69.  
  70. enum {
  71.    OPENMODE_FILE,
  72.    OPENMODE_CAPTURE,
  73.    OPENMODE_PASTE,
  74.    OPENMODE_BITMAP,
  75.    OPENMODE_TWAIN,
  76.    OPENMODE_COLORMERGE,
  77. };
  78.  
  79. /////////////////////////////////////////////////////////////////////////////
  80.