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.

71 lines
1.5 KiB

  1. //
  2. // Microsoft Windows Media Technologies
  3. // Copyright (C) Microsoft Corporation, 1999 - 2001. All rights reserved.
  4. //
  5. //
  6. // This workspace contains two projects -
  7. // 1. ProgHelp which implements the Progress Interface
  8. // 2. The Sample application WmdmApp.
  9. //
  10. // ProgHelp.dll needs to be registered first for the SampleApp to run.
  11. //
  12. // devfiles.h
  13. //
  14. #ifndef _DEVFILES_H_
  15. #define _DEVFILES_H_
  16. #include "WMDMProgressHelper.h"
  17. #include "WMDMOperationHelper.h"
  18. ///////////////////////////////////////////////////////////////////////////////
  19. //
  20. class CDevFiles
  21. {
  22. HWND m_hwndDevFiles;
  23. HWND m_hwndDevFiles_LV;
  24. INT m_iFolderIcon;
  25. BOOL InitImageList( void );
  26. BOOL InitColumns( void );
  27. BOOL SendFilesToDevice( LPSTR pszFiles, UINT uNumFiles );
  28. public:
  29. DWORD m_dwTotalTicks;
  30. DWORD m_dwWorkingTicks;
  31. CProgress m_cProgress;
  32. IWMDMProgressHelper *m_pProgHelp;
  33. WNDPROC m_wndprocDevFiles_LV;
  34. // constructors/destructors
  35. CDevFiles();
  36. ~CDevFiles();
  37. // operations
  38. BOOL Create( HWND hwndParent );
  39. VOID Destroy( void );
  40. HWND GetHwnd( void );
  41. HWND GetHwnd_LV( void );
  42. INT GetSelectedItems( INT nItems[], INT *pnSelItems );
  43. VOID UpdateStatusBar( void );
  44. BOOL AddItem( CItemData *pItemData );
  45. BOOL RemoveItem( INT nItem );
  46. VOID RemoveAllItems( void );
  47. VOID OnSize( LPRECT prcMain );
  48. BOOL OnDropFiles( HWND hWnd, WPARAM wParam, LPARAM lParam );
  49. BOOL OkToDelete();
  50. };
  51. #endif // _DEVFILES_H_