mirror of https://github.com/tongzx/nt5src
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
896 B
43 lines
896 B
// 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__
|
|
|