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.

65 lines
1.8 KiB

  1. #if !defined(AFX_DEVICECMDDLG_H__9C06742C_DBF4_11D2_B1CD_009027226441__INCLUDED_)
  2. #define AFX_DEVICECMDDLG_H__9C06742C_DBF4_11D2_B1CD_009027226441__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DeviceCmdDlg.h : header file
  7. //
  8. #include "WIATestUI.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CDeviceCmdDlg dialog
  11. class CDeviceCmdDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CString m_strhResult;
  16. CString hResultToCString(HRESULT hResult);
  17. void DebugLoadCommands();
  18. CString ConvertGUIDToKnownCString(GUID guid);
  19. BOOL AddDevCapToListBox(int CapIndex,WIA_DEV_CAP* pDevCapStruct);
  20. CString GUIDToCString(GUID guid);
  21. GUID GetCommandFromListBox();
  22. IWiaItem* m_pOptionalItem;
  23. BOOL EnumerateDeviceCapsToListBox();
  24. void FormatFunctionCallText();
  25. IWiaItem* m_pIWiaItem;
  26. void Initialize(IWiaItem *pIWiaItem);
  27. CDeviceCmdDlg(CWnd* pParent = NULL); // standard constructor
  28. // Dialog Data
  29. //{{AFX_DATA(CDeviceCmdDlg)
  30. enum { IDD = IDD_DEVICE_COMMAND_DIALOG };
  31. CWIAPropListCtrl m_ItemPropertyListControl;
  32. CListBox m_CommandListBox;
  33. long m_Flags;
  34. CString m_FunctionCallText;
  35. //}}AFX_DATA
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CDeviceCmdDlg)
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. // Generated message map functions
  45. //{{AFX_MSG(CDeviceCmdDlg)
  46. virtual BOOL OnInitDialog();
  47. afx_msg void OnSendCommand();
  48. afx_msg void OnKillfocusFlagsEditbox();
  49. afx_msg void OnSelchangeCommandListbox();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_DEVICECMDDLG_H__9C06742C_DBF4_11D2_B1CD_009027226441__INCLUDED_)