www.pudn.com > DiskInfo.tgz > DrawEx.h
#ifndef __DRAWEX_H__
#define __DRAWEX_H__
#include "Dib.h"
#include "DrawDib.h"
int DrawAniRects(CRect* rcFr, CRect* rcTo);
class CFadeWindow
{
CDib m_dib1, m_dib2, m_dib3;
CDrawDib m_draw;
public:
CFadeWindow();
~CFadeWindow();
bool IsFastEnough(); //Determine if the computer is fast enough to run this fading effect
void Init(int nWidth, int nHeight);
void Close();
int FadeAndSwitchWindow(CWnd* pWndFrom, CWnd* pWndTo);
};
void FillBmpRect(CDC* pDC, const CRect& rect, CBitmap* pBmp, int nBmpX, int nBmpY);
void DrawPercentBar(CDC* pDC, const CRect& rect, const double dPercent,
const CString& strText, CFont* pFont);
void TransparentBlt (HDC hdc, HBITMAP hBitmap, int xStart,
int yStart, COLORREF cTransparentColor);
void FillGradient(CDC *pDC, const CRect& rectClient, COLORREF m_clrStart, COLORREF m_clrEnd);
#endif //__DRAWEX_H__