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

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1993 by Borland International
  3. //   source\owl\bitmapga.cpp
  4. //   Implementation of class TBitmapGadget
  5. //----------------------------------------------------------------------------
  6. #if !defined(__OWL_BITMAPGA_H)
  7. #define __OWL_BITMAPGA_H
  8.  
  9. #if !defined(__OWL_GADGET_H)
  10.   #include "owl\gadget.h"
  11. #endif
  12. class _OWLCLASS TCelArray;
  13.  
  14. //
  15. //  class TBitmapGadget
  16. //  ----- -------------
  17. //
  18. //  simple gadget that can display an array of bitmap images, one at a time.
  19. //
  20. class _OWLCLASS TBitmapGadget : public TGadget {
  21.   public:
  22.     TBitmapGadget(TResId bmpResId,
  23.                   int id,
  24.                   TBorderStyle borderStyle,
  25.                   int numImages, 
  26.                   int startImage);
  27.    ~TBitmapGadget();
  28.     
  29.     int SelectImage(int imageNum, BOOL immediate);
  30.  
  31.     void          SysColorChange();
  32.  
  33.   protected:
  34.     void Paint(TDC& dc);
  35.     
  36.     void SetBounds(TRect& boundRect);
  37.     void GetDesiredSize(TSize& size);
  38.     
  39.   private:
  40.     TResId     ResId;
  41.     TCelArray* ImageArray;
  42.     int        CurrentImage;
  43.     int        NumImages;
  44.     TPoint     BitmapOrigin;
  45. };
  46.  
  47. #endif  // __OWL_BITMAPGA_H
  48.