home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / COMMON / TOOLS / VCM / VCM.MDB / VcmComponentContainer / 23_Cabinet / BMPPROP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-18  |  1.7 KB  |  73 lines

  1. // BmpProp.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. struct BITMAPINFO256 : public BITMAPINFO
  14. {
  15.     RGBQUAD bmiOtherColors[255];
  16. };
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CBitmapProperty command target
  20.  
  21. class CBitmapProperty : public CDataPathProperty
  22. {
  23.     DECLARE_DYNAMIC(CBitmapProperty)
  24. //Constructor
  25. public:
  26.     CBitmapProperty(COleControl* pControl = NULL);
  27.  
  28. // Attributes
  29. public:
  30.     CBitmap m_Bitmap;
  31.     CSize m_BitmapSize;
  32.     BITMAPINFO256 m_bmInfo;
  33.     CMemFile m_CacheFile;
  34.     enum DLState
  35.     {
  36.         dlNone,
  37.         dlFileHeader,
  38.         dlInfoHeader,
  39.         dlColorTable,
  40.         dlDone
  41.     } m_dlState;
  42.     int m_nScanLine;
  43.     DWORD m_cbRead;
  44.  
  45. // Operations
  46. public:
  47.     BOOL ReadStruct(DWORD& rdwSize, void* pb, int cLen);
  48.     int ReadArray(DWORD& rdwSize, void** pb, int cElem, int cMax);
  49.  
  50.  
  51. // Overrides
  52. public:
  53.     // ClassWizard generated virtual function overrides
  54.     //{{AFX_VIRTUAL(CBitmapProperty)
  55.     public:
  56.     virtual void ResetData();
  57.     protected:
  58.     virtual void OnDataAvailable(DWORD dwSize, DWORD bscfFlag);
  59.     //}}AFX_VIRTUAL
  60.  
  61.     // Generated message map functions
  62.     //{{AFX_MSG(CBitmapProperty)
  63.         // NOTE - the ClassWizard will add and remove member functions here.
  64.     //}}AFX_MSG
  65.  
  66. // Implementation
  67. public:
  68.     virtual ~CBitmapProperty();
  69. protected:
  70. };
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73.