Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.4 KiB

  1. // devctrlDlg.h : header file
  2. //
  3. #if !defined(AFX_DEVCTRLDLG_H__4D791BBD_82C5_45B4_8F6D_0BE962C80FD1__INCLUDED_)
  4. #define AFX_DEVCTRLDLG_H__4D791BBD_82C5_45B4_8F6D_0BE962C80FD1__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #include "Configdlg.h"
  9. #include "devctrldefs.h"
  10. #include "cregistry.h"
  11. #include "hpscl.h"
  12. #include "pmxe3.h"
  13. #define DEVCTRL_APP_KEY TEXT("Software\\Microsoft\\WIA\\Tools\\devctrl")
  14. //
  15. // put new scanner models here
  16. //
  17. #define HP_SCL_SCANNER 0
  18. #define VISIONEER_E3_SCANNER 1
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDevctrlDlg dialog
  21. class CDevctrlDlg : public CDialog
  22. {
  23. // Construction
  24. public:
  25. void ReadRegistryValues();
  26. void WriteRegistryValues();
  27. void CloseAllHandles();
  28. void InitDefaultSettings();
  29. BOOL WriteScannerSettings();
  30. CDevctrlDlg(CWnd* pParent = NULL); // standard constructor
  31. DEVCTRL m_DeviceControl;
  32. CRegistry * m_pRegistry;
  33. CString m_Pipe1;
  34. CString m_Pipe2;
  35. CString m_Pipe3;
  36. LONG m_datatype;
  37. LONG m_device;
  38. CHPSCL* m_phpscl;
  39. CPMXE3* m_pprimaxE3;
  40. // Dialog Data
  41. //{{AFX_DATA(CDevctrlDlg)
  42. enum { IDD = IDD_DEVCTRL_DIALOG };
  43. CButton m_CreateButton;
  44. CComboBox m_DataTypeCombobox;
  45. CComboBox m_DeviceCombobox;
  46. long m_xres;
  47. long m_yres;
  48. long m_xpos;
  49. long m_ypos;
  50. long m_xext;
  51. long m_yext;
  52. CString m_CreateFileName;
  53. //}}AFX_DATA
  54. // ClassWizard generated virtual function overrides
  55. //{{AFX_VIRTUAL(CDevctrlDlg)
  56. protected:
  57. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  58. //}}AFX_VIRTUAL
  59. // Implementation
  60. protected:
  61. HICON m_hIcon;
  62. // Generated message map functions
  63. //{{AFX_MSG(CDevctrlDlg)
  64. virtual BOOL OnInitDialog();
  65. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  66. afx_msg void OnPaint();
  67. afx_msg HCURSOR OnQueryDragIcon();
  68. afx_msg void OnWriteSettingsButton();
  69. afx_msg void OnScanButton();
  70. afx_msg void OnAbortScanButton();
  71. afx_msg void OnConfigureButton();
  72. afx_msg void OnCreateButton();
  73. virtual void OnCancel();
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_DEVCTRLDLG_H__4D791BBD_82C5_45B4_8F6D_0BE962C80FD1__INCLUDED_)