Leaked source code of windows server 2003
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.

43 lines
939 B

  1. // pictures.h : this is the header file for the picture object
  2. //
  3. #ifndef __PICTURES_H__
  4. #define __PICTURES_H__
  5. /****************************************************************************/
  6. class CPic : public CDC
  7. {
  8. public:
  9. DECLARE_DYNAMIC( CPic )
  10. protected:
  11. CBitmap mBitmap;
  12. CBitmap mMask;
  13. HBITMAP mhBitmapOld;
  14. CSize mSize;
  15. int miCnt;
  16. BOOL mbReady;
  17. public:
  18. CPic();
  19. ~CPic();
  20. BOOL PictureSet(LPCTSTR lpszResourceName, int iCnt=1 );
  21. BOOL PictureSet(UINT nIDResource, int iCnt=1 );
  22. void Picture( CDC* pDC, int iX, int iY, int iPic=0 );
  23. CSize PictureSize() { return mSize; }
  24. private:
  25. BOOL InstallPicture();
  26. };
  27. /****************************************************************************/
  28. #endif // __PICTURES_H__