home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / OWLINC.PAK / CLIPVIEW.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  2KB  |  57 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // (C) Copyright 1992, 1994 by Borland International, All Rights Reserved
  4. //
  5. //----------------------------------------------------------------------------
  6. #if !defined(OWL_CLIPVIEW_H)
  7. #define OWL_CLIPVIEW_H
  8.  
  9. #if !defined(OWL_WINDOW_H)
  10. # include <owl/window.h>
  11. #endif
  12.  
  13. //
  14. //  class TClipboardViewer
  15. //  ----- ----------------
  16. //
  17. //  Mix-in class that registers as a clipboard viewer when the user interface
  18. //  element is created and removes itself from the clipboard-viewer chain when
  19. //  it is destroyed
  20. //
  21. class _OWLCLASS TClipboardViewer : virtual public TWindow {
  22.   protected:
  23.     TClipboardViewer();
  24.     TClipboardViewer(HWND hWnd, TModule* module = 0);
  25.  
  26.     TEventStatus DoChangeCBChain(HWND hWndRemoved, HWND hWndNext);
  27.     TEventStatus DoDestroy();
  28.     TEventStatus DoDrawClipboard();  // pass to next window in clipboard-viewer chain
  29.  
  30.   protected:
  31.     HWND  HWndNext;  // next window in clipboard-viewer chain
  32.  
  33.     //
  34.     // override method defined by TWindow
  35.     //
  36.     void   SetupWindow();
  37.  
  38.     //
  39.     // message response functions
  40.     //
  41.     void   EvChangeCBChain(HWND hWndRemoved, HWND hWndNext);
  42.     void   EvDestroy();
  43.     void   EvDrawClipboard();  // pass to next window in clipboard-viewer chain
  44.  
  45.   private:
  46.     //
  47.     // hidden to prevent accidental copying or assignment
  48.     //
  49.     TClipboardViewer(const TClipboardViewer&);
  50.     TClipboardViewer& operator =(const TClipboardViewer&);
  51.  
  52.   DECLARE_RESPONSE_TABLE(TClipboardViewer);
  53.   DECLARE_CASTABLE;
  54. };
  55.  
  56. #endif  // OWL_CLIPVIEW_H
  57.