home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR9 / WDOS0793.ZIP / GRAVES.ZIP / WINLIN.H < prev   
C/C++ Source or Header  |  1993-05-28  |  1KB  |  36 lines

  1. #ifndef _WINLIN_H
  2. #define _WINLIN_H
  3.  
  4. #ifndef _WINBUF_H
  5. #   include "winbuf.h"
  6. #endif
  7.  
  8. // ______________________________________________________-
  9. //  TWinBufLines ("TWinBufLin")
  10. //
  11. //  A window to demonstrate the effectiveness of buffered 
  12. //  redraws.  Click the right mouse button in the window
  13. //  to toggle buffering on and off.
  14. //
  15. class _EXPORT TWinBufLines : public TWinBuffered
  16. {
  17. public:
  18.     TWinBufLines(PTWindowsObject AParent, 
  19.                  LPSTR           ATitle, 
  20.                  PTModule        AModule          = NULL,
  21.                  BOOL            bBufferedRedraw_ = TRUE)
  22.         :TWinBuffered(AParent, ATitle, AModule, 
  23.                       bBufferedRedraw) { }
  24. protected:
  25.     virtual LPSTR GetClassName() { return "TWinBuffered"; 
  26. }
  27.  
  28.     virtual void WMRButtonDown(RTMessage)
  29.         = [WM_FIRST + WM_RBUTTONDOWN]
  30.         { SetbBufferedRedraw(!bBufferedRedraw); }
  31.  
  32.     virtual void prvDraw(HDC hdc, HDC hdc2 = 0);
  33. };
  34. #endif // #ifndef _WINLIN_H
  35.  
  36.