Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
792 B

  1. #ifndef __7ce01a97_b0e7_4c05_84c1_bbeae369a488__
  2. #define __7ce01a97_b0e7_4c05_84c1_bbeae369a488__
  3. #include <windows.h>
  4. #include "simdc.h"
  5. #include "simstr.h"
  6. class CBitmapImage
  7. {
  8. private:
  9. HBITMAP m_hBitmap;
  10. HPALETTE m_hPalette;
  11. private:
  12. operator=( const CBitmapImage & );
  13. CBitmapImage( const CBitmapImage & );
  14. public:
  15. CBitmapImage(void);
  16. virtual ~CBitmapImage(void);
  17. void Destroy(void);
  18. bool IsValid(void) const;
  19. HPALETTE Palette(void) const;
  20. HBITMAP GetBitmap(void) const;
  21. SIZE ImageSize(void) const;
  22. HPALETTE PreparePalette( CSimpleDC &dc, HBITMAP hBitmap );
  23. bool Load( CSimpleDC &dc, LPCTSTR pszFilename, const RECT &rcScreen, int nMaxScreenPercent, bool bAllowStretching, bool bDisplayFilename );
  24. };
  25. #endif //__IMGS_H_INCLUDED