自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 352

原创 简单歌词控件

#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 387

原创 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 355

原创 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 276

原创 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 255

原创 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 288

原创 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 336

原创 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 415

原创 位图剪切

/* 函数功能:剪切bmp图片*/void CCutBmpDlg::CutBmpTwo(CString soucepath,CString cutpath1,CString cutpath2){ if (GetFileAttributes(soucepath) == -1) { return; } HBITMAP SouceBitma

2011-12-05 17:00:17 363

原创 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 518

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除