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
895 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1998.
  5. //
  6. // File: curarr.cxx
  7. //
  8. // Contents: Cursor Stack Classes
  9. //
  10. // Classes: COccCurStack, and CCurStack
  11. //
  12. // History: 20-Jan-92 AmyA Created
  13. // 05-Feb-92 BartoszM Added CCurArray
  14. // 19-Feb-92 AmyA Added COccCurArray
  15. //
  16. //----------------------------------------------------------------------------
  17. #include <pch.cxx>
  18. #pragma hdrstop
  19. #include <ocursor.hxx>
  20. #include <curstk.hxx>
  21. #include "syncur.hxx"
  22. COccCursor* COccCurStack::QuerySynCursor( WORKID widMax )
  23. {
  24. if (Count() == 0)
  25. return 0;
  26. if (Count() == 1)
  27. return Pop();
  28. return new CSynCursor( *this, widMax );
  29. }