Windows NT 4.0 source code leak
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.

26 lines
357 B

4 years ago
  1. #include "stdafx.h"
  2. #pragma hdrstop
  3. #ifdef _DEBUG
  4. #undef THIS_FILE
  5. static char THIS_FILE[] = __FILE__;
  6. #endif
  7. CWaitCursor::CWaitCursor(void)
  8. {
  9. hcurOld = SetCursor(LoadCursor(NULL, IDC_WAIT));
  10. }
  11. CWaitCursor::~CWaitCursor()
  12. {
  13. if (hcurOld)
  14. SetCursor(hcurOld);
  15. }
  16. void CWaitCursor::Restore(void)
  17. {
  18. if (hcurOld)
  19. SetCursor(hcurOld);
  20. hcurOld = NULL;
  21. }