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

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1992, 1993 by Borland International
  3. //   include\owl\controlb.h
  4. //   Class TControlBar.
  5. //----------------------------------------------------------------------------
  6. #if !defined(__OWL_CONTROLB_H)
  7. #define __OWL_CONTROLB_H
  8.  
  9. #if !defined(__OWL_GADGETWI_H)
  10.   #include "owl\gadgetwi.h"
  11. #endif
  12.  
  13. //
  14. //  class TControlBar
  15. //  ----- -----------
  16. //
  17. //  implements a control bar which provides mnemonic access for its button
  18. //  gadgets. by default positions itself at the top of the window
  19. //
  20. class _OWLCLASS TControlBar : public TGadgetWindow {
  21.   public:
  22.     TControlBar(TWindow*        parent = 0,
  23.                 TTileDirection  direction= Horizontal,
  24.                 TFont*          font = new TGadgetWindowFont,
  25.                 TModule*        module = 0);
  26.  
  27.     BOOL    PreProcessMsg(MSG& msg);
  28.  
  29.   protected:
  30.     void    PositionGadget(TGadget* previous, TGadget* next, TPoint& p);
  31.  
  32.   DECLARE_CASTABLE;
  33. };
  34.  
  35. #endif  // __OWL_CONTROLB_H
  36.