自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 非客户区自绘

void CMainFrame::OnNcPaint(){ // TODO: 在此处添加消息处理程序代码 // 不为绘图消息调用 CFrameWnd::OnNcPaint(); myDrawCaption(this);         }//得分榜void CMainFrame::myDrawCaption(CWnd* pWnd){ CDC* pWinDC = pWnd->GetWindowD

2006-09-20 10:40:00 1452

原创 设置标题和图标,设置窗口大小,设置光标

//设置标题int CFreecellView::UpdateTitle(void) { CString str, strtemp; str.Format("#%#d", FreecellGame->m_SelectNum); strtemp.Format("空当接龙游戏  "); strtemp += str; CWnd* pW = ::AfxGetMainWnd(); pW->SetWindo

2006-09-20 10:38:00 1290

原创 注册表简单操作

注册表简单操作 CString strSection = "MyFreecell";   //读入注册表,英雄榜 CString strIntItem = "My Int Item"; CWinApp* pApp = AfxGetApp(); for(int i=0;i  for(int j=0; j  {   FreecellGame->Record[3*(i+1)+j] = pApp->G

2006-09-20 10:33:00 655

原创 双缓存绘图GDI

 //双缓存绘图 CBitmap bitmapmem;           CBitmap *pOldBit; CDC m_pMemDC; m_pMemDC.CreateCompatibleDC(pDC);  CRect rc; GetClientRect(&rc); bitmapmem.CreateCompatibleBitmap(pDC, rc.Width(), rc.Height()); p

2006-09-20 10:31:00 2039

转载 关于获得MFC窗口其它类指针的方法

关于获得MFC窗口其它类指针的方法访问应用程序的其它类获得CWinApp: -在CMainFrame,CChildFrame,CDocument,CView中直接调用AfxGetApp()或用theApp -在其它类中只能用AfxGetApp()获得CMainFrame: -在CMinApp中用AfxGetMainWnd()或者m_pMainWnd -在CChildFrame中可用GetPar

2006-09-20 10:16:00 802

空空如也

空空如也

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

TA关注的人

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