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.

54 lines
1.4 KiB

  1. #if !defined(AFX_WIASELECT_H__B8718725_9CA2_404F_A1D3_18BC0CADB3CE__INCLUDED_)
  2. #define AFX_WIASELECT_H__B8718725_9CA2_404F_A1D3_18BC0CADB3CE__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Wiaselect.h : header file
  7. //
  8. #define MAX_WIA_DEVICES 50
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CWiaselect dialog
  11. class CWiaselect : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CWiaselect(CWnd* pParent = NULL); // standard constructor
  16. BSTR m_bstrSelectedDeviceID;
  17. // Dialog Data
  18. //{{AFX_DATA(CWiaselect)
  19. enum { IDD = IDD_SELECTDEVICE_DIALOG };
  20. CListBox m_WiaDeviceListBox;
  21. //}}AFX_DATA
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CWiaselect)
  25. protected:
  26. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. protected:
  30. LONG m_lDeviceCount;
  31. BSTR m_bstrDeviceIDArray[MAX_WIA_DEVICES];
  32. void FreebstrDeviceIDArray();
  33. // Generated message map functions
  34. //{{AFX_MSG(CWiaselect)
  35. virtual BOOL OnInitDialog();
  36. virtual void OnOK();
  37. virtual void OnCancel();
  38. afx_msg void OnDblclkWiadeviceListbox();
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. };
  42. //{{AFX_INSERT_LOCATION}}
  43. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  44. #endif // !defined(AFX_WIASELECT_H__B8718725_9CA2_404F_A1D3_18BC0CADB3CE__INCLUDED_)