home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / mslang / poetmf / inc / bitmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-02  |  1.1 KB  |  43 lines

  1. //*******************************************************************
  2. //    
  3. //    bitmap.h    headerfile
  4. //                            
  5. //    (C) 1993 POET Software
  6. //
  7. //*******************************************************************                     
  8.  
  9. #include <ptblob.hxx>    //    header to class PtBlob
  10.  
  11. #ifndef __BITMAP_H__
  12. #define __BITMAP_H__
  13.  
  14. class Bitmap
  15. {
  16.     private:                        
  17.         CBitmap *m_pBitmap;        //    pointer to MFC Bitmap class
  18.         short     xBMWidth;       //    
  19.         short     yBMHeight;      //
  20.     public:
  21.         HANDLE    BitmapHandle;
  22.         WORD    PixelHeight , PixelWidth;
  23.  
  24.         Bitmap() { }
  25.         ~Bitmap()
  26.            {
  27.             if ( BitmapHandle )
  28.                 DeleteObject(BitmapHandle);
  29.             m_pBitmap->DeleteObject ();
  30.            }
  31.            
  32.         void FAR Draw (CPaintDC *hdc, short xPos, short yPos);
  33.         void Setup (CWnd *pWnd, PtBlob *Blob);
  34.         short GetBMWidth() { return xBMWidth; }
  35.         short GetBMHeight() { return yBMHeight; }
  36.         BOOL LoadBitmap (PtBlob *);
  37.         void GetBitmapData(char *, HANDLE BitsHandle,long BitsByteSize);
  38.         BOOL OpenDIB(char *);
  39. };
  40.  
  41. #endif    //    __BITMAP_H__
  42.  
  43.