- 博客(10)
- 收藏
- 关注
原创 简单歌词控件2
void CLrc::Paint(HDC hdc,CRect rtRect){ CRect rect; if (rect.IntersectRect(rtRect,m_rRect)) { CRect drawRect; SetBkMode(hdc,TRANSPARENT); SetBkColor(hdc,RGB(0,0,0)); Se
2012-01-14 15:44:50
368
原创 简单歌词控件
#include using namespace std;typedef struct _LrcInfo{ CString szGeci; UINT startTime; } LrcInfo,*Lrc; class CLrc {public: CLrc(); virtual ~CLrc();protected: vector
2012-01-14 15:43:58
400
原创 GDI特效5
void CEffect::lrSplitScanning(HDC dc, HDC memdc, CRect rtReDraw){ int x = 0; int y = 0; LONG i = 0; int nDeta =1; BOOL bDone =FALSE; while(!bDone) { if (i > rtReDraw.Height()/2)
2012-01-14 11:45:04
374
原创 GDI特效5
void CEffect::fourRotation(HDC dc, HDC memdc, CRect rtReDraw){ const double PI = 3.141592653589793f; CPoint Center(rtReDraw.Width()/2, rtReDraw.Height()/2); int Width = rtReDraw.Width()-Center
2012-01-14 11:42:08
295
原创 GDI特效4
void CEffect::ltrSingleRefresh(HDC dc, HDC memdc, CRect rtReDraw){ int Width = rtReDraw.Width()/10; int Height = rtReDraw.Height()/10; for(int i = 0; i < 11 ; i ++ ) { if ( i*Width >= rtR
2012-01-14 11:40:48
271
原创 GDI特效3
void CEffect::utdMove(HDC dc, HDC memdc, CRect rtReDraw){ int x = 0; int y = 0; LONG i = 0; int nDeta =4; BOOL bDone =FALSE; while(!bDone) { if (i > rtReDraw.Height()) { i
2012-01-14 11:35:18
303
原创 GDI特效2
void CEffect::SmallToBig(HDC dc, HDC memdc, CRect rtReDraw ){ int ScreenW = GetSystemMetrics(SM_CXSCREEN); int ScreenH = GetSystemMetrics(SM_CYSCREEN); int HStep = 35; int WStep = ScreenW*HS
2012-01-14 11:32:53
352
原创 GDI特效
//一个项目要用到GDI做特效,于是自己简简单单拼凑了几个 static void SeparateLeftRight(HDC dc, HDC memdc, CRect rtReDraw ); //左右分开 static void SmallToBig(HDC dc, HDC memdc, CRect rtReDraw ); //由小到大 static void BigToSmall(
2012-01-13 09:39:08
427
原创 位图剪切
/* 函数功能:剪切bmp图片*/void CCutBmpDlg::CutBmpTwo(CString soucepath,CString cutpath1,CString cutpath2){ if (GetFileAttributes(soucepath) == -1) { return; } HBITMAP SouceBitma
2011-12-05 17:00:17
376
原创 windowsAPI操作注册表
操作注册表我一直是用一个类。不记得这个类是在网上找的还是自己封装的。 注册表常用的值有REG_SZ(文本字符串),REG_DWORD(32位整数),REG_BINARY(二进制数据,在注册表编辑器中以16进制显示),REG_MULTI_SZ(多行字符串,以"\0"换行)。 下面是源码: #define MyFreeLib(h) { if(h) FreeLibrary(h);
2011-11-24 11:52:42
538
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人