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

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