You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
487 B
C++
26 lines
487 B
C++
#ifndef _BACKGROUNDUTIL_H_
|
|
#define _BACKGROUNDUTIL_H_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
class CBackgroundUtil
|
|
{
|
|
public:
|
|
BOOL SetBitmap(UINT uResourceID = 0);
|
|
CBackgroundUtil();
|
|
virtual ~CBackgroundUtil();
|
|
|
|
protected:
|
|
BOOL TileBitmap(CDC* pDC, CRect rc);
|
|
BOOL GetBitmapAndPalette(UINT nIDResource, CBitmap& bitmap, CPalette& pal);
|
|
// For background bitmap
|
|
CBitmap m_BmpPattern;
|
|
CPalette m_BmpPalette;
|
|
int m_nBmpWidth;
|
|
int m_nBmpHeight;
|
|
};
|
|
|
|
#endif
|