Source code of Windows XP (NT5)
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
852 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1998.
  5. //
  6. // File: kcurstk.cxx
  7. //
  8. // Contents: Cursor Stack Classes
  9. //
  10. // Classes: CKeyCurStack
  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 <keycur.hxx>
  20. #include <curstk.hxx>
  21. #include "wlcursor.hxx"
  22. CKeyCursor* CKeyCurStack::QueryWlCursor(WORKID widMax)
  23. {
  24. if (Count() == 0)
  25. return 0;
  26. if (Count() == 1)
  27. return Pop();
  28. return new CWlCursor(Count(), *this, widMax );
  29. }