Leaked source code of windows server 2003
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.4 KiB

  1. //
  2. // Microsoft Windows Media Technologies
  3. // Copyright (C) Microsoft Corporation, 1999 - 2001. All rights reserved.
  4. //
  5. // This workspace contains two projects -
  6. // 1. ProgHelp which implements the Progress Interface
  7. // 2. The Sample application WmdmApp.
  8. //
  9. // ProgHelp.dll needs to be registered first for the SampleApp to run.
  10. ///////////////////////////////////////////////////////////////////////////////
  11. //
  12. // devices.h
  13. //
  14. ///////////////////////////////////////////////////////////////////////////////
  15. #ifndef _DEVICES_H_
  16. #define _DEVICES_H_
  17. class CDevices
  18. {
  19. HWND m_hwndDevices;
  20. HWND m_hwndDevices_TV;
  21. HIMAGELIST m_himlSmall;
  22. BOOL InitImageList( void );
  23. public:
  24. // Constructors/destructors
  25. //
  26. CDevices();
  27. ~CDevices();
  28. // Operations
  29. //
  30. BOOL Create( HWND hwndParent );
  31. VOID Destroy( void );
  32. HWND GetHwnd( void );
  33. HWND GetHwnd_TV( void );
  34. HTREEITEM GetSelectedItem( LPARAM *pLParam );
  35. BOOL SetSelectedItem( HTREEITEM hItem );
  36. INT GetDeviceCount( VOID );
  37. CItemData *GetRootDevice( HTREEITEM hItem );
  38. BOOL HasSubFolders( HTREEITEM hItem );
  39. VOID UpdateStatusBar( void );
  40. BOOL UpdateSelection( HTREEITEM hItem, BOOL fDirty );
  41. BOOL AddItem( CItemData *pItemData );
  42. INT AddChildren( HTREEITEM hItem, BOOL fDeviceItem );
  43. VOID RemoveAllItems( VOID );
  44. INT RemoveChildren( HTREEITEM hItem );
  45. VOID OnSize( LPRECT prcMain );
  46. };
  47. #endif // _DEVICES_H_