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.

39 lines
821 B

  1. // File: pfndrawd.h
  2. #ifndef _PFNDRAWD_H_
  3. #define _PFNDRAWD_H_
  4. #include <vfw.h>
  5. typedef HDRAWDIB (VFWAPI * PFN_DRAWDIBOPEN) ();
  6. typedef BOOL (VFWAPI * PFN_DRAWDIBCLOSE) (HDRAWDIB hdd);
  7. typedef BOOL (VFWAPI * PFN_DRAWDIBDRAW) (HDRAWDIB hdd,
  8. HDC hdc, int xDst, int yDst, int dxDst, int dyDst,
  9. LPBITMAPINFOHEADER lpbi, LPVOID lpBits,
  10. int xSrc, int ySrc, int dxSrc, int dySrc, UINT wFlags);
  11. typedef BOOL (VFWAPI * PFN_DRAWDIBSETPALETTE) (HDRAWDIB hdd, HPALETTE hpal);
  12. class DRAWDIB
  13. {
  14. private:
  15. static HINSTANCE m_hInstance;
  16. protected:
  17. DRAWDIB() {};
  18. ~DRAWDIB() {};
  19. public:
  20. static HRESULT Init(void);
  21. static PFN_DRAWDIBDRAW DrawDibDraw;
  22. static PFN_DRAWDIBOPEN DrawDibOpen;
  23. static PFN_DRAWDIBCLOSE DrawDibClose;
  24. static PFN_DRAWDIBSETPALETTE DrawDibSetPalette;
  25. };
  26. #endif /* _PFNDRAWD_H_ */