home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / owlsrc.pak / CLIPBOAR.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-24  |  1023 b   |  32 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // (C) Copyright 1992, 1994 by Borland International, All Rights Reserved
  4. //
  5. //   Clipboard encapsulation
  6. //----------------------------------------------------------------------------
  7. #include <owl/owlpch.h>
  8. #include <owl/clipboar.h>
  9.  
  10. //
  11. // Global clipboard object obtained using GetClipboard(). This technique
  12. // is obsolete.
  13. // The recomended way is to construct a TClipboard object using the
  14. // TClipboard(HWND) ctor
  15. //
  16. TClipboard TClipboard::TheClipboard;
  17.  
  18. const char* TClipboard::DefaultProtocol = "StdFileEditing";
  19.     
  20. //
  21. // Construct a clipboard object to grab the clipboard given a window handle.
  22. // This is the preferred method of getting the clipboard; the implementation
  23. // is currently inline.
  24. // Will eventually throw an exception on open failure.
  25. //
  26. //TClipboard::TClipboard(HWND hWnd)
  27. //{
  28. //  OpenClipboard(hWnd);
  29. //  if (!IsOpen)
  30. //    throw TXClipboard(IDS_CLIPBOARDBUSY);
  31. //}
  32.