controller.h
上传用户:dfhlxjd
上传日期:2007-01-07
资源大小:12k
文件大小:1k
源码类别:

Shell编程

开发平台:

Visual C++

  1. //----------------------------------------
  2. // (c) Reliable Software 1997
  3. //----------------------------------------
  4. #ifndef _controller_H_INCLUDED
  5. #define _controller_H_INCLUDED
  6. #include <windows.h>
  7. #include <strstrea.h>
  8. #include "controls.h"
  9. #include "com.h"
  10. class Controller
  11. {
  12. public:
  13.     Controller(HWND hwnd);
  14.     void Command (HWND hwnd, int controlID, int command);
  15. ULONG CalculateFolderSize(char const * folderName);
  16. private:
  17. void BeginNewCalculation();
  18. void CreateResultString(ULONG size, ostrstream & ostr);
  19. UseCom _uc;
  20. HWND _hwnd;
  21.     Edit        _pathField;
  22.     Button      _browse;
  23. Button _calculate;
  24.     Edit        _resultField;
  25.     Button      _exit;
  26.     Button      _clear;
  27. };
  28. #endif // _controller_H_INCLUDED