GoodDC.h 760 B

123456789101112131415161718192021222324252627
  1. // CGoodDC.h: interface for the CGoodDC class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CGOODDC_H__48F4C3B7_E91A_4EC5_A736_DAD8B0C70658__INCLUDED_)
  5. #define AFX_CGOODDC_H__48F4C3B7_E91A_4EC5_A736_DAD8B0C70658__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. BOOL DisplayBMP(CDC* pDC,int nX1,int nY1,int nXX,int nYY,CString strBMPFile,BOOL bStretch);
  10. void DrawColorButton(LPDRAWITEMSTRUCT lpDIS,COLORREF clrButton);
  11. class CGoodDC : public CDC
  12. {
  13. private:
  14. CDC* m_pOldDC;
  15. CRect m_rect;
  16. CBitmap m_bitmap,*m_pOldBitmap;
  17. public:
  18. void Create(CDC* pDC);
  19. void Destroy(void);
  20. void Destroy(CRect rect);
  21. };
  22. #endif // !defined(AFX_CGOODDC_H__48F4C3B7_E91A_4EC5_A736_DAD8B0C70658__INCLUDED_)