Windows2000/private/windows/shell/accesory/mspaint/pictures.h
2020-09-30 17:12:32 +02:00

44 lines
894 B
C++

// pictures.h : this is the header file for the picture object
#ifndef __PICTURES_H__
#define __PICTURES_H__
/****************************************************************************/
class CPic : public CDC
{
public:
DECLARE_DYNAMIC( CPic )
protected:
CBitmap mBitmap;
CBitmap mMask;
HBITMAP mhBitmapOld;
CSize mSize;
int miCnt;
BOOL mbReady;
public:
CPic();
~CPic();
BOOL PictureSet(LPCTSTR lpszResourceName, int iCnt=1 );
BOOL PictureSet(UINT nIDResource, int iCnt=1 );
void Picture( CDC* pDC, int iX, int iY, int iPic=0 );
CSize PictureSize() { return mSize; }
private:
BOOL InstallPicture();
};
/****************************************************************************/
#endif // __PICTURES_H__