Source code of Windows XP (NT5)
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.

27 lines
637 B

  1. //
  2. // Copyright (c) 1996 - 1999 Microsoft Corporation. All Rights Reserved.
  3. //
  4. #ifndef __CMsgWindow__h
  5. #define __CMsgWindow__h
  6. //
  7. // Message Window class (for handling WM_TIMER messages) definition
  8. //
  9. class CMsgWindow
  10. {
  11. public:
  12. virtual ~CMsgWindow() ;
  13. virtual bool Open( LPCTSTR pWindowName = 0);
  14. virtual bool Close();
  15. virtual LRESULT WndProc( UINT uMsg, WPARAM wParam, LPARAM lParam );
  16. HWND GetHandle() const { return m_hWnd; } ;
  17. void SetHandle(HWND hwnd) {m_hWnd = hwnd; } ;
  18. protected:
  19. CMsgWindow();
  20. private:
  21. HWND m_hWnd ;
  22. };
  23. #endif