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.

70 lines
1.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1997 **/
  4. /**********************************************************************/
  5. /*
  6. modeless.h
  7. Header file for the base class of the Statistics dialogs.
  8. FILE HISTORY:
  9. */
  10. #ifndef _MODELESS_H
  11. #define _MODELESS_H
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. #ifndef _DIALOG_H_
  16. #include "dialog.h"
  17. #endif
  18. #ifndef _COLUMN_H
  19. #include "column.h"
  20. #endif
  21. #include "commres.h"
  22. // forward declarations
  23. struct ColumnData;
  24. class ModelessThread : public CWinThread
  25. {
  26. DECLARE_DYNCREATE(ModelessThread)
  27. protected:
  28. ModelessThread(); // protected constructor used by dynamic creation
  29. public:
  30. ModelessThread(HWND hWndParent, UINT nIdTemplate,
  31. HANDLE hEvent,
  32. CDialog *pModelessDialog);
  33. // Operations
  34. public:
  35. // Overrides
  36. virtual BOOL InitInstance();
  37. // virtual int ExitInstance();
  38. protected:
  39. virtual ~ModelessThread();
  40. CDialog * m_pModelessDlg;
  41. UINT m_nIDD;
  42. HWND m_hwndParent;
  43. // Signal this when we are being destroyed
  44. HANDLE m_hEvent;
  45. DECLARE_MESSAGE_MAP()
  46. };
  47. #endif // _MODELESS_H