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.

56 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1994.
  5. //
  6. // File: PSource.cxx
  7. //
  8. // Contents: TEXT_SOURCE implementation for a phrase
  9. //
  10. // Classes: CTextSource
  11. //
  12. // History: 20-Apr-94 KyleP Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #include <pch.cxx>
  16. #pragma hdrstop
  17. #include "psource.hxx"
  18. //+-------------------------------------------------------------------------
  19. //
  20. // Member: CPhraseSource::CPhraseSource, public
  21. //
  22. // Synopsis: Constructor
  23. //
  24. // Arguments: [pwcPhrase] -- Phrase
  25. // [cwcPhrase] -- Count of characters in phrase
  26. //
  27. // History: 20-Apr-94 KyleP Created
  28. //
  29. //--------------------------------------------------------------------------
  30. CPhraseSource::CPhraseSource( WCHAR const * pwcPhrase, unsigned cwcPhrase )
  31. {
  32. iEnd = cwcPhrase;
  33. iCur = 0;
  34. awcBuffer = pwcPhrase;
  35. pfnFillTextBuffer = CPhraseSource::FillBuf;
  36. }
  37. //+-------------------------------------------------------------------------
  38. //
  39. // Member: CPhraseSource::FillBuf, public
  40. //
  41. // Synopsis: 'Fills' buffer
  42. //
  43. // History: 20-Apr-94 KyleP Created
  44. //
  45. //--------------------------------------------------------------------------
  46. SCODE CPhraseSource::FillBuf( TEXT_SOURCE * pTextSource )
  47. {
  48. return( WBREAK_E_END_OF_TEXT );
  49. }