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.

38 lines
940 B

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 1998
  4. *
  5. * TITLE: WAITCURS.H
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: ShaunIv
  10. *
  11. * DATE: 5/3/1999
  12. *
  13. * DESCRIPTION: Change the cursor to an hourglass during lengthy operations. To
  14. * use, just put a CWaitCursor wc; in your function. It will restore
  15. * the cursor when the class is destroyed (usually when the function
  16. * is exited.
  17. *
  18. *******************************************************************************/
  19. #ifndef __WAITCURS_H_INCLUDED
  20. #define __WAITCURS_H_INCLUDED
  21. class CWaitCursor
  22. {
  23. private:
  24. HCURSOR m_hCurOld;
  25. public:
  26. CWaitCursor(void)
  27. {
  28. m_hCurOld = SetCursor( LoadCursor( NULL, IDC_WAIT ) );
  29. }
  30. ~CWaitCursor(void)
  31. {
  32. SetCursor(m_hCurOld);
  33. }
  34. };
  35. #endif