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.

34 lines
982 B

  1. //------------------------------------------------------------------------
  2. // UI.H
  3. //
  4. // Commonly used UI routines, classes, etc.
  5. //------------------------------------------------------------------------
  6. #if !defined(__UI_H__)
  7. #define __UI_H__
  8. #define vUIPStatusShow(a,b)
  9. VOID FAR PASCAL vUIMsgInit( );
  10. int FAR PASCAL iUIErrMemDlg( );
  11. /* The wait cursor is used to cause an hourglass for the duration of a
  12. * routine. The constructor sets the cursor to the hourglass, holding
  13. * the previous. The destructor recovers the original cursor (or arrow if
  14. * none).
  15. */
  16. class WaitCursor
  17. {
  18. public :
  19. WaitCursor () { m_Cursor = SetCursor(LoadCursor(NULL, IDC_WAIT));};
  20. ~WaitCursor () { if (m_Cursor != NULL)
  21. SetCursor (m_Cursor);
  22. else
  23. SetCursor(LoadCursor(NULL, IDC_ARROW)); };
  24. private :
  25. HCURSOR m_Cursor;
  26. };
  27. #endif // __UI_H__