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.

207 lines
4.8 KiB

  1. //
  2. // WIATestUI.h - handles controls for WIATest
  3. //
  4. /////////////////////////////////////////////////////////////////////////////
  5. #if !defined(WIATESTUI_H)
  6. #define WIATESTUI_H
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CWIAPropListCtrl window
  9. class CWIAPropListCtrl : public CListCtrl
  10. {
  11. // Construction
  12. public:
  13. CWIAPropListCtrl();
  14. // Attributes
  15. public:
  16. // Operations
  17. public:
  18. // Overrides
  19. // ClassWizard generated virtual function overrides
  20. //{{AFX_VIRTUAL(CWIAPropListCtrl)
  21. //}}AFX_VIRTUAL
  22. protected:
  23. // Implementation
  24. public:
  25. void Resize(int dx, int dy);
  26. void DisplayItemPropData(IWiaItem* pIWiaItem,BOOL bAccessFlags = TRUE);
  27. void ConvertPropVarToString(PROPVARIANT *pPropVar,LPSTR szVal);
  28. void InitHeaders();
  29. BOOL ConvertAccessFlagsToString(char* pszText,ULONG AccessFlags);
  30. BOOL ConvertVarTypeToString(char* pszText,ULONG VarType);
  31. virtual ~CWIAPropListCtrl();
  32. // Generated message map functions
  33. protected:
  34. //{{AFX_MSG(CWIAPropListCtrl)
  35. //}}AFX_MSG
  36. DECLARE_MESSAGE_MAP()
  37. };
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CWIATreeCtrl window
  40. class CWIATreeCtrl : public CTreeCtrl
  41. {
  42. // Construction
  43. public:
  44. CWIATreeCtrl();
  45. // Attributes
  46. public:
  47. // Operations
  48. public:
  49. // Overrides
  50. // ClassWizard generated virtual function overrides
  51. //{{AFX_VIRTUAL(CWIATreeCtrl)
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. public:
  55. POSITION m_CurrentPosition;
  56. BOOL Construct(CPtrList* pActiveTreeList,HTREEITEM hParent,int ParentID);
  57. IWiaItem* GetRootIWiaItem(CPtrList* pActiveTreeList);
  58. IWiaItem* GetSelectedIWiaItem(CPtrList* pActiveTreeList);
  59. void InitHeaders();
  60. BOOL BuildItemTree(CPtrList* pActiveTreeList);
  61. void DestroyItemTree(CPtrList* pActiveTreeList);
  62. virtual ~CWIATreeCtrl();
  63. // Generated message map functions
  64. protected:
  65. //{{AFX_MSG(CWIATreeCtrl)
  66. // NOTE - the ClassWizard will add and remove member functions here.
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. /////////////////////////////////////////////////////////////////////////////
  71. /////////////////////////////////////////////////////////////////////////////
  72. // CWIADeviceComboBox window
  73. class CWIADeviceComboBox : public CComboBox
  74. {
  75. // Construction
  76. public:
  77. CWIADeviceComboBox();
  78. void AddDeviceID(int DeviceIndex, BSTR DeviceName, BSTR ServerName,BSTR bstrDeviceID);
  79. // Attributes
  80. public:
  81. // Operations
  82. public:
  83. // Overrides
  84. // ClassWizard generated virtual function overrides
  85. //{{AFX_VIRTUAL(CWIADeviceComboBox)
  86. //}}AFX_VIRTUAL
  87. // Implementation
  88. public:
  89. void SetCurrentSelFromID(CString CmdLine);
  90. CString GetDeviceName(int ComboIndex);
  91. CString GetCurrentDeviceName();
  92. BSTR GetCurrentDeviceID();
  93. virtual ~CWIADeviceComboBox();
  94. // Generated message map functions
  95. protected:
  96. //{{AFX_MSG(CWIADeviceComboBox)
  97. // NOTE - the ClassWizard will add and remove member functions here.
  98. //}}AFX_MSG
  99. DECLARE_MESSAGE_MAP()
  100. };
  101. /////////////////////////////////////////////////////////////////////////////
  102. /////////////////////////////////////////////////////////////////////////////
  103. // CWIAClipboardFormatComboBox window
  104. class CWIAClipboardFormatComboBox : public CComboBox
  105. {
  106. // Construction
  107. public:
  108. CString ConvertClipboardFormatToCString(GUID ClipboardFormat);
  109. GUID GetCurrentClipboardFormat();
  110. void InitClipboardFormats(CPtrList* pSupportedFormatList,LONG Tymed);
  111. CWIAClipboardFormatComboBox();
  112. const GUID* GetGUIDPtr(GUID guidIn);
  113. // Attributes
  114. public:
  115. // Operations
  116. public:
  117. // Overrides
  118. // ClassWizard generated virtual function overrides
  119. //{{AFX_VIRTUAL(CWIAClipboardFormatComboBox)
  120. //}}AFX_VIRTUAL
  121. // Implementation
  122. public:
  123. void SetClipboardFormat(GUID CF_VALUE);
  124. virtual ~CWIAClipboardFormatComboBox();
  125. // Generated message map functions
  126. protected:
  127. //{{AFX_MSG(CWIAClipboardFormatComboBox)
  128. // NOTE - the ClassWizard will add and remove member functions here.
  129. //}}AFX_MSG
  130. DECLARE_MESSAGE_MAP()
  131. };
  132. /////////////////////////////////////////////////////////////////////////////
  133. /////////////////////////////////////////////////////////////////////////////
  134. // CWIATymedComboBox window
  135. class CWIATymedComboBox : public CComboBox
  136. {
  137. // Construction
  138. public:
  139. CWIATymedComboBox();
  140. // Attributes
  141. public:
  142. // Operations
  143. public:
  144. // Overrides
  145. // ClassWizard generated virtual function overrides
  146. //{{AFX_VIRTUAL(CWIATymedComboBox)
  147. //}}AFX_VIRTUAL
  148. // Implementation
  149. public:
  150. void InitTymedComboBox();
  151. DWORD GetCurrentTymed();
  152. virtual ~CWIATymedComboBox();
  153. // Generated message map functions
  154. protected:
  155. //{{AFX_MSG(CWIATymedComboBox)
  156. // NOTE - the ClassWizard will add and remove member functions here.
  157. //}}AFX_MSG
  158. DECLARE_MESSAGE_MAP()
  159. };
  160. /////////////////////////////////////////////////////////////////////////////
  161. #endif