windows-nt/Source/XPSP1/NT/shell/osshell/accesory/mspaint/pictures.h

44 lines
896 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
// 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__