home *** CD-ROM | disk | FTP | other *** search
/ PC Administrator / spravce.iso / TaskModule / src / TaskTrackerWnd.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-08-27  |  1.2 KB  |  41 lines

  1. // TaskTrackerWnd.h: interface for the CTaskTrackerWnd class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_TASKTRACKERWND_H__978AE823_C55F_47C0_9BE9_C3E350F0214D__INCLUDED_)
  6. #define AFX_TASKTRACKERWND_H__978AE823_C55F_47C0_9BE9_C3E350F0214D__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #define WM_ADDTASK WM_USER+1
  13. #define WM_DELETETASK WM_USER+2
  14. #define WM_SHOWTASKS WM_USER+3
  15.  
  16. #include "MyWindow.h"
  17. #include <vector>
  18. using namespace std;
  19.  
  20. class CTaskTrackerWnd : public CMyWindow  
  21. {
  22. public:
  23.     HWND SetSwitcherHwnd(HWND hWnd);
  24.     HWND GetSwitcherHwnd();
  25.     void Add(HWND hWnd);
  26.     bool InList(HWND hWnd);
  27.     CTaskTrackerWnd();
  28.     virtual ~CTaskTrackerWnd();
  29.     unsigned long int Init(HWND hParent,char *pWindowName, unsigned long int dwExStyle,unsigned long int dwStyle, int x, int y,int nWidth, int nHeight, HMENU hMenu, int nCmdShow);
  30. protected:
  31.     LRESULT WndProc(HWND hWnd,UINT nMessage,WPARAM wParam,LPARAM lParam);
  32.     void OnTimer();
  33.     void OnDestroy();
  34.  
  35.     // member variables
  36.     vector <HWND> m_vWnds;
  37.     HWND m_hSwitcherWnd;
  38. };
  39.  
  40. #endif // !defined(AFX_TASKTRACKERWND_H__978AE823_C55F_47C0_9BE9_C3E350F0214D__INCLUDED_)
  41.