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.

66 lines
1.9 KiB

  1. #if !defined(AFX_WIACAPDLG_H__914888B1_84BF_4F3E_894F_DC6B67A568B1__INCLUDED_)
  2. #define AFX_WIACAPDLG_H__914888B1_84BF_4F3E_894F_DC6B67A568B1__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // WiacapDlg.h : header file
  7. //
  8. #define ITEMPROPERTYLISTCTRL_COLUMN_CAPABILITYNAME 0
  9. #define ITEMPROPERTYLISTCTRL_COLUMN_CAPABILITYDESCRIPTION 1
  10. #define ITEMPROPERTYLISTCTRL_COLUMN_CAPABILITYTYPE 2
  11. #define ITEMPROPERTYLISTCTRL_COLUMN_CAPABILITYVALUE 3
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CWiacapDlg dialog
  14. class CWiacapDlg : public CDialog
  15. {
  16. // Construction
  17. public:
  18. BOOL m_bCommandSent;
  19. INT GetSelectedCapability();
  20. void GetCommandGUID(INT iItem, GUID *pguid);
  21. BOOL IsCommand(INT iItem);
  22. void SetIWiaItem(IWiaItem *pIWiaItem);
  23. CWiacapDlg(CWnd* pParent = NULL); // standard constructor
  24. // Dialog Data
  25. //{{AFX_DATA(CWiacapDlg)
  26. enum { IDD = IDD_CAPABILITIES_DIALOG };
  27. CButton m_SendCommandButton;
  28. CListCtrl m_CapablitiesListCtrl;
  29. //}}AFX_DATA
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CWiacapDlg)
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. protected:
  38. // Generated message map functions
  39. //{{AFX_MSG(CWiacapDlg)
  40. virtual BOOL OnInitDialog();
  41. afx_msg void OnClose();
  42. afx_msg void OnSendCommandButton();
  43. afx_msg void OnClickCapabilitiesListctrl(NMHDR* pNMHDR, LRESULT* pResult);
  44. afx_msg void OnItemchangedCapabilitiesListctrl(NMHDR* pNMHDR, LRESULT* pResult);
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. private:
  48. LONG m_NumCaps;
  49. IWiaItem *m_pIWiaItem;
  50. void AddCapabilitiesToListBox(LONG lType);
  51. void SetupColumnHeaders();
  52. };
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_WIACAPDLG_H__914888B1_84BF_4F3E_894F_DC6B67A568B1__INCLUDED_)