📄 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__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -