home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 3.ddi / OWLINC.ZIP / CONTROL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.1 KB  |  44 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef __CONTROL_H
  4. #define __CONTROL_H
  5.  
  6. #ifndef __APPLICAT_H
  7. #include <applicat.h>
  8. #endif
  9.  
  10. #pragma option -Vo-
  11. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  12. #pragma option -po-
  13. #endif
  14.  
  15.   /* TControl */
  16.  
  17. _CLASSDEF(TControl)
  18.  
  19. class _EXPORT TControl : public TWindow {
  20. public:
  21.     TControl(PTWindowsObject AParent, int AnId, LPSTR ATitle, int X,
  22.              int Y, int W, int H, PTModule AModule = NULL);
  23.     TControl(PTWindowsObject AParent, int ResourceId,
  24.          PTModule AModule = NULL);
  25.     virtual int GetId()
  26.         { return Attr.Id; }
  27.  
  28. protected:
  29.     TControl(StreamableInit) : TWindow(streamableInit) {};
  30.  
  31.     virtual void WMPaint(RTMessage Msg) = [WM_FIRST + WM_PAINT];
  32.     virtual void WMDrawItem(RTMessage Msg) = [WM_FIRST + WM_DRAWITEM];
  33.     virtual void ODADrawEntire(DRAWITEMSTRUCT far & DrawInfo);
  34.     virtual void ODAFocus(DRAWITEMSTRUCT far & DrawInfo);
  35.     virtual void ODASelect(DRAWITEMSTRUCT far & DrawInfo);
  36. };
  37.  
  38. #pragma option -Vo.
  39. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  40. #pragma option -po.
  41. #endif
  42.  
  43. #endif
  44.