home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / OWLINC.PAK / CLIPVIEW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.6 KB  |  56 lines

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