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.

28 lines
649 B

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // WaitCursor.h
  7. //
  8. // Description:
  9. // Wait Cursor stack class.
  10. //
  11. // Maintained By:
  12. // Geoffrey Pease (GPease) 14-JUL-2000
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. class CWaitCursor
  17. {
  18. private:
  19. HCURSOR m_hOldCursor;
  20. public:
  21. explicit CWaitCursor( ) { m_hOldCursor = SetCursor( LoadCursor( NULL, IDC_WAIT ) ); };
  22. ~CWaitCursor( ) { SetCursor( m_hOldCursor ); };
  23. }; // class CWaitCursor